summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2013-10-12 16:50:53 +0100
committerAlan Pearce2013-10-12 16:50:53 +0100
commit9200045481dd98c9fd3fba601c53cd9040035266 (patch)
tree27ec04ed50463708a355f779c08c55f2946247ba /emacs
parentff17a94532bbd44709db6b71d6d9f67de39e8a89 (diff)
downloadnixfiles-9200045481dd98c9fd3fba601c53cd9040035266.tar.lz
nixfiles-9200045481dd98c9fd3fba601c53cd9040035266.tar.zst
nixfiles-9200045481dd98c9fd3fba601c53cd9040035266.zip
Emacs: bind s-, to open emacs init file from register
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 6b8a253d..ad8fd754 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -523,6 +523,9 @@ Values: `desktop', `server', `laptop'")
 
 (bind-key "s-x" (define-prefix-command 'super-x-map))
 
+(bind-key "s-," (lambda ()
+                  (interactive)
+                  (jump-to-register ?e)))
 (set-register ?e `(file . ,*init-file*))
 (set-register ?z `(file . ,(expand-file-name ".zshrc" "~")))