summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson@vistahigherlearning.com>2015-05-26 14:52:13 -0400
committerDavid Thompson <dthompson@vistahigherlearning.com>2015-05-26 14:52:13 -0400
commit694486c402700450263371f0915ce5983ba5b8ec (patch)
tree65872cb8b6071cc161c1aa5c0d0d2869c298cdd2
parent161e57ba200961f430e0538a72bf3b7a19b3781d (diff)
emacs: Don't throw an error if .ercpasswords doesn't exist.
-rw-r--r--dotfiles/.emacs.d/erc.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/dotfiles/.emacs.d/erc.el b/dotfiles/.emacs.d/erc.el
index 8ac9536..e98829e 100644
--- a/dotfiles/.emacs.d/erc.el
+++ b/dotfiles/.emacs.d/erc.el
@@ -79,7 +79,10 @@
(setq erc-join-buffer 'bury)
;; Secret password file
-(load "~/.emacs.d/.ercpasswords")
+(defvar freenode-password nil)
+(let ((password-file "~/.emacs.d/.ercpasswords"))
+ (when (file-exists-p password-file)
+ (load password-file)))
;; Stuff to make authenticating with Rizon work
(erc-services-mode t)