From fdc4999df1d1db9ce82641004bd094110e15e37d Mon Sep 17 00:00:00 2001 From: Bobby Bingham Date: Sun, 12 Apr 2020 17:00:52 -0500 Subject: emacs: load local config if present --- emacs/.emacs.d/init.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index f73b395..a554a64 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -181,5 +181,9 @@ (dolist (face faces) (set-face-attribute face nil :foreground fg :background bg))) +(defun load-if-exists (filename) + (when (file-exists-p filename) (load-file filename))) +(load-if-exists "~/.emacs.d/local.el") + (setq custom-file "~/.emacs.d/custom.el") (load-file custom-file) -- cgit v1.2.3