diff options
author | David Thompson <dthompson@vistahigherlearning.com> | 2015-05-26 14:52:13 -0400 |
---|---|---|
committer | David Thompson <dthompson@vistahigherlearning.com> | 2015-05-26 14:52:13 -0400 |
commit | 694486c402700450263371f0915ce5983ba5b8ec (patch) | |
tree | 65872cb8b6071cc161c1aa5c0d0d2869c298cdd2 | |
parent | 161e57ba200961f430e0538a72bf3b7a19b3781d (diff) |
emacs: Don't throw an error if .ercpasswords doesn't exist.
-rw-r--r-- | dotfiles/.emacs.d/erc.el | 5 |
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) |