From 694486c402700450263371f0915ce5983ba5b8ec Mon Sep 17 00:00:00 2001 From: David Thompson Date: Tue, 26 May 2015 14:52:13 -0400 Subject: emacs: Don't throw an error if .ercpasswords doesn't exist. --- dotfiles/.emacs.d/erc.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3