From: Ian Jackson Date: Mon, 13 Jun 2016 11:27:01 +0000 (+0100) Subject: emacs: load ian-local.el if it exists; load private.el if it exists X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=ian-dotfiles.git;a=commitdiff_plain;h=db19e59e74a16e1aafe1472148041f7957943232;ds=sidebyside emacs: load ian-local.el if it exists; load private.el if it exists --- 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"