dot/ercrc.el: Move loading local stuff to the end.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 23 Mar 2016 10:32:22 +0000 (10:32 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 9 Aug 2017 01:55:28 +0000 (02:55 +0100)
Load `local' after `auth'.  I generally expect `auth' to be copied but
not modified, and `local' may want to override its settings, e.g., to
prevent auto-greeting bots and suchlike.

dot/ercrc.el

index cc701e1..3881cc1 100644 (file)
@@ -13,8 +13,6 @@
       erc-fill-prefix "   "
       erc-max-buffer-size (* 60 3000))
 
-(load "~/.erc-local.el")
-
 (setq erc-track-exclude-types '("NICK" "JOIN" "PART"))
 
 (setq erc-auto-query 'buffer)
@@ -94,7 +92,6 @@ Evaluation order for the keywords is a bit screwy: don't rely on it."
   (mdw-pushnew-replace (list server acct passwd)
                       mdw-erc-ircop-alist
                       :test #'string= :key #'car))
-(load "~/.erc-auth.el")
 
 (defun mdw-assoc-regexp (regexp alist)
   "Return the association in ALIST whose car matches REGEXP."
@@ -124,3 +121,6 @@ Evaluation order for the keywords is a bit screwy: don't rely on it."
       (let ((acct (cadr a))
            (passwd (caddr a)))
        (erc-server-send (concat "OPER " acct " " passwd))))))
+
+(load "~/.erc-auth.el")
+(load "~/.erc-local.el")