From: Edward O'C. <ho...@gm...> - 2006-03-15 21:34:27
|
> So how can I get erc to first load its config file before connecting? As documented[0], ERC only loads ~/.ercrc.el after the initial IRC connection of your Emacs instance. Any ERC configuration that should happen *before* the inital connect should go in .emacs. Here's an (abridged) example from my ~/.{emacs,ercrc.el}. Ted 0. http://www.emacswiki.org/cgi-bin/wiki/ErcStartupFiles ~/.emacs: (when (locate-library "erc") (autoload 'erc-select-read-args "erc" nil nil) ; needed for XEmacs (autoload 'erc-select "erc" nil t) (setq erc-server "irc.freenode.net" erc-port 6667 erc-user-full-name "Edward O'Connor" erc-email-userid "ted" erc-nick '("hober" "hober2" "hober3"))) ~/.ercrc.el: (require 'erc-fill) (erc-fill-mode 1) (setq erc-fill-column 72) (require 'erc-stamp) (erc-stamp-mode 1) (setq erc-insert-timestamp-function 'erc-insert-timestamp-left erc-timestamp-format "[%H:%M] " erc-insert-away-timestamp-function 'erc-insert-timestamp-left erc-away-timestamp-format "<%H:%M> ") (require 'erc-button) (erc-button-mode 1) (setq erc-button-wrap-long-urls nil) (require 'erc-netsplit) (erc-netsplit-mode 1) |