diff options
author | Bobby Bingham <koorogi@koorogi.info> | 2020-04-12 17:00:52 -0500 |
---|---|---|
committer | Bobby Bingham <koorogi@koorogi.info> | 2020-04-12 17:07:25 -0500 |
commit | fdc4999df1d1db9ce82641004bd094110e15e37d (patch) | |
tree | da4f73461d60c06980b66cf8affdd6031012cfef /emacs | |
parent | cb56e48805ae897d9fab5a269adbb817fdf42223 (diff) |
emacs: load local config if present
Diffstat (limited to 'emacs')
-rw-r--r-- | emacs/.emacs.d/init.el | 4 |
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) |