aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2018-11-07 10:17:06 +0000
committerYann Herklotz <ymherklotz@gmail.com>2018-11-07 10:17:06 +0000
commitb85c0f4286129f3fccef810cfacc199bcacd3a9e (patch)
tree48f92dba9c14cee48015ca6c31c71f8baa5eeec8
parente23a135cbac01e4ec58e636bf9e9533d19ce8821 (diff)
downloaddotfiles-b85c0f4286129f3fccef810cfacc199bcacd3a9e.tar.gz
dotfiles-b85c0f4286129f3fccef810cfacc199bcacd3a9e.zip
Add changes to org
-rw-r--r--emacs/loader.org31
1 files changed, 16 insertions, 15 deletions
diff --git a/emacs/loader.org b/emacs/loader.org
index 76f507d..45de8e4 100644
--- a/emacs/loader.org
+++ b/emacs/loader.org
@@ -48,27 +48,13 @@ Defining all the package repositories that are going to be used.
(defvar melpa '("melpa" . "https://melpa.org/packages/"))
(defvar melpa-stable '("melpa-stable" . "https://stable.melpa.org/packages/"))
(defvar org-elpa '("org" . "https://orgmode.org/elpa/"))
-#+END_SRC
-
-#+RESULTS:
-: org-elpa
-These packages are then added to the list of package archives.
-
-#+BEGIN_SRC emacs-lisp
(setq package-archives nil)
(add-to-list 'package-archives melpa-stable t)
(add-to-list 'package-archives melpa t)
(add-to-list 'package-archives gnu t)
(add-to-list 'package-archives org-elpa t)
-#+END_SRC
-
-#+RESULTS:
-: ((melpa-stable . https://stable.melpa.org/packages/) (melpa . https://melpa.org/packages/) (gnu . https://elpa.gnu.org/packages/) (org . https://orgmode.org/elpa/))
-Initialise the packages and if the directories don't exist, create them.
-
-#+BEGIN_SRC emacs-lisp
(setq package-enable-at-startup nil)
(package-initialize)
#+END_SRC
@@ -93,8 +79,10 @@ Threshold for faster startup.
(setq gc-cons-threshold 500000000)
#+END_SRC
-** General Configuration
+#+RESULTS:
+: 500000000
+** General Configuration
*** Editor settings
Editor specific options such as adding line numbers.
@@ -334,6 +322,13 @@ programming and looking at source code.
#+RESULTS:
: eshell
+*** Reload
+
+#+BEGIN_SRC emacs-lisp
+ (defun y/reload ()
+ (interactive)
+ (load-file (expand-file-name "~/.emacs.d/init.el")))
+#+END_SRC
* Social
** Mail
@@ -738,6 +733,12 @@ Agenda setup for org mode, pointing to the write files.
(concat org-directory "/inbox.org"))
(setq org-image-actual-width nil
org-format-latex-options (plist-put org-format-latex-options :scale 1.5))
+
+ (eval-after-load "org"
+ '(setq org-metaup-hook nil
+ org-metadown-hook nil))
+
+ (add-hook 'org-trigger-hook 'save-buffer)
#+END_SRC
Set global keys for org mode to access agenda.