Difference between revisions of "ERC"

From WikEmacs
Jump to navigation Jump to search
Line 25: Line 25:
  
 
     ;; Set autojoin channels
 
     ;; Set autojoin channels
     (add-to-list 'erc-autojoin-channels-alist
+
     (setq erc-autojoin-channels-alist
      '("freenode.net" "#emacs" "#foo" "#bar"))
+
          '("freenode.net" "#emacs" "#foo" "#bar"))))
  
    ;; Connect to Freenode automatically
+
;; Connect to Freenode automatically
    (erc-tls :server "irc.freenode.net" :port 7000)))
+
(defun my-erc ()
 +
  "Connect to my default ERC servers."
 +
  (interactive)
 +
  (erc-tls :server "irc.freenode.net" :port 7000))
 
</source>
 
</source>
  

Revision as of 18:43, 2 April 2012

ERC
Description IRC in Emacs
Author name of author
Maintainer name of maintainer
Source http://savannah.gnu.org/projects/erc/
Part of Emacs yes, since 22.1

ERC is an Internet Relay Chat (IRC) client built into Emacs.

Basic setup

Start ERC using M-x erc or M-x erc-tls if you want to connect over SSL.

Helpful keybindings

Common customization

(eval-after-load "erc"
  '(progn

     ;; Set personal information
     (setq erc-nick "defaultnick")
     (setq erc-user-full-name "My Full Name")

     ;; Set autojoin channels
     (setq erc-autojoin-channels-alist
           '("freenode.net" "#emacs" "#foo" "#bar"))))

;; Connect to Freenode automatically
(defun my-erc ()
  "Connect to my default ERC servers."
  (interactive)
  (erc-tls :server "irc.freenode.net" :port 7000))

See also

Project pages