summaryrefslogtreecommitdiff
path: root/emacs/.emacs.d
diff options
context:
space:
mode:
authorBobby Bingham <koorogi@koorogi.info>2020-04-12 17:00:52 -0500
committerBobby Bingham <koorogi@koorogi.info>2020-04-12 17:07:25 -0500
commitfdc4999df1d1db9ce82641004bd094110e15e37d (patch)
treeda4f73461d60c06980b66cf8affdd6031012cfef /emacs/.emacs.d
parentcb56e48805ae897d9fab5a269adbb817fdf42223 (diff)
emacs: load local config if present
Diffstat (limited to 'emacs/.emacs.d')
-rw-r--r--emacs/.emacs.d/init.el4
1 files changed, 4 insertions, 0 deletions
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)