summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2013-05-28 21:21:04 +0100
committerAlan Pearce2013-05-28 21:21:04 +0100
commitf59f31505c64291c7f247fcfded0ba8ff3c513b5 (patch)
treeed60f15e80e4eb7df0ce32d81e9bcdbe8e6e9e05 /emacs
parentea157ffc4382057bd3f2e924e80866ebd2fd33d7 (diff)
downloadnixfiles-f59f31505c64291c7f247fcfded0ba8ff3c513b5.tar.lz
nixfiles-f59f31505c64291c7f247fcfded0ba8ff3c513b5.tar.zst
nixfiles-f59f31505c64291c7f247fcfded0ba8ff3c513b5.zip
Emacs: add register bindings for emacs init file and organiser.org
Diffstat (limited to 'emacs')
-rw-r--r--emacs/init.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/emacs/init.el b/emacs/init.el
index 4941e36b..13833c27 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -465,6 +465,8 @@ Values: `desktop', `server', `laptop'")
 
 (bind-key "C-c i" #'ucs-insert)
 
+(set-register ?e `(file . ,user-init-file))
+
 ;; Enable narrowing functions C-x n
 (put 'narrow-to-defun  'disabled nil)
 (put 'narrow-to-page   'disabled nil)
@@ -596,6 +598,7 @@ Values: `desktop', `server', `laptop'")
                   org-todo-keywords '((sequence "TODO" "STARTED" "|" "DONE")
                                       (sequence "TOLEARN" "LEARNING" "LEARNED" "|" "MASTERED")
                                       (sequence "|" "CANCELLED")))
+            (set-register ?o `(file . ,(expand-file-name "organiser.org" org-directory)))
             (defadvice org-clock-in (after wicked activate)
               "Mark STARTED when clocked in"
               (save-excursion