all repos — nixfiles @ 78673c644973ad84aec8ce9935971db11f7f2f02

System and user configuration, managed by nix and home-manager

Emacs: Add reload-user-init-file command
Alan Pearce alan@alanpearce.eu
Sun, 24 Sep 2017 14:49:40 +0200
commit

78673c644973ad84aec8ce9935971db11f7f2f02

parent

9a875c4c1da6dc78fc78ddc9262106c52788f65f

1 files changed, 5 insertions(+), 0 deletions(-)

jump to
M emacs/.emacs.d/init.elemacs/.emacs.d/init.el
@@ -11,6 +11,11 @@ (setq package-archives nil) (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))