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