summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2017-09-24 14:49:40 +0200
committerAlan Pearce2017-09-24 14:49:40 +0200
commit78673c644973ad84aec8ce9935971db11f7f2f02 (patch)
tree9b2c1bccc8598fb8f31761a316d681ee71247ba8
parent9a875c4c1da6dc78fc78ddc9262106c52788f65f (diff)
downloadnixfiles-78673c644973ad84aec8ce9935971db11f7f2f02.tar.lz
nixfiles-78673c644973ad84aec8ce9935971db11f7f2f02.tar.zst
nixfiles-78673c644973ad84aec8ce9935971db11f7f2f02.zip
Emacs: Add reload-user-init-file command
-rw-r--r--emacs/.emacs.d/init.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el
index 22c3f72c..643da1b8 100644
--- a/emacs/.emacs.d/init.el
+++ b/emacs/.emacs.d/init.el
@@ -11,6 +11,11 @@
 (package-initialize)
 (require 'auto-compile nil :noerror)
 
+(defun reload-user-init-file ()
+  "Reload init file."
+  (interactive)
+  (load-file user-init-file))
+
 (when (featurep 'auto-compile)
   (auto-compile-on-load-mode))