I use ZNC to connect to IRC, and since ZNC seems to have the unfortunate characteristic of making me create a new "login" for each server I want to connect to (i.e Freenode and Quakenet), when erc starts I have a bunch of buffers all named the same thing.
My erc config looks like:
(defun djcb-erc-start-or-switch () "Connect to ERC, or switch to last active buffer" (interactive) (if (get-buffer "example.com:60667") ;; ERC already active? (erc-track-switch-buffer 1) ;; yes: switch to last active (when (y-or-n-p "Start ERC? ") ;; no: maybe start ERC ;; I use ZNC so I need to hit my server (erc :server "example.com" :port 60667 :nick "nick1") (erc :server "example.com" :port 60667 :nick "nick2") )))
How can I get it to start and alias the server buffer names for