From 78673c644973ad84aec8ce9935971db11f7f2f02 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 24 Sep 2017 14:49:40 +0200 Subject: Emacs: Add reload-user-init-file command --- emacs/.emacs.d/init.el | 5 +++++ 1 file changed, 5 insertions(+) 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)) -- cgit 1.4.1