summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)