From db19e59e74a16e1aafe1472148041f7957943232 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 13 Jun 2016 12:27:01 +0100 Subject: [PATCH] emacs: load ian-local.el if it exists; load private.el if it exists --- dot/emacs | 3 +++ home/emacs/ian.el | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/dot/emacs b/dot/emacs index 4c2a317..c629a79 100644 --- a/dot/emacs +++ b/dot/emacs @@ -18,3 +18,6 @@ (load-library "ian") (menu-bar-mode -1) (put 'dired-find-alternate-file 'disabled nil) +(let ((ian-local (locate-library "ian-local"))) + (if ian-local + (load-library ian-local))) diff --git a/home/emacs/ian.el b/home/emacs/ian.el index 1366b88..00ec26d 100644 --- a/home/emacs/ian.el +++ b/home/emacs/ian.el @@ -372,7 +372,8 @@ then call send-and-exit." bbdb-message-caching-enabled t) ; ; VM stuff -;(load-file "~/private/private.el") +(if (file-exists-p "~/private/private.el") + (load-file "~/private/private.el")) (if (file-exists-p "~/private/private2.el") (load-file "~/private/private2.el")) (setq vm-included-text-attribution-format "%F writes (\"%s\"):\n" -- 2.30.2