2007-09-06 05:07:05 +00:00
|
|
|
\input texinfo
|
|
|
|
@c %**start of header
|
2007-09-06 05:10:13 +00:00
|
|
|
@setfilename ../../info/erc
|
2007-09-06 05:07:05 +00:00
|
|
|
@settitle ERC Manual
|
|
|
|
@syncodeindex fn cp
|
2012-10-06 01:42:02 +00:00
|
|
|
@include emacsver.texi
|
2009-02-16 17:41:58 +00:00
|
|
|
@c %**end of header
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
@copying
|
2012-10-06 01:42:02 +00:00
|
|
|
This manual is for ERC as distributed with Emacs @value{EMACSVER}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
2012-10-06 01:42:02 +00:00
|
|
|
Copyright @copyright{} 2005-2012 Free Software Foundation, Inc.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
@quotation
|
|
|
|
Permission is granted to copy, distribute and/or modify this document
|
2008-11-19 04:29:29 +00:00
|
|
|
under the terms of the GNU Free Documentation License, Version 1.3 or
|
2007-09-06 05:07:05 +00:00
|
|
|
any later version published by the Free Software Foundation; with no
|
2008-06-16 01:57:42 +00:00
|
|
|
Invariant Sections, with the Front-Cover texts being ``A GNU Manual,''
|
|
|
|
and with the Back-Cover Texts as in (a) below. A copy of the license
|
|
|
|
is included in the section entitled ``GNU Free Documentation License''.
|
|
|
|
|
|
|
|
(a) The FSF's Back-Cover Text is: ``You have the freedom to copy and
|
|
|
|
modify this GNU manual. Buying copies from the FSF supports it in
|
|
|
|
developing GNU and promoting software freedom.''
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
All Emacs Lisp code contained in this document may be used, distributed,
|
|
|
|
and modified without restriction.
|
|
|
|
@end quotation
|
|
|
|
@end copying
|
|
|
|
|
2011-02-18 13:57:53 +00:00
|
|
|
@dircategory Emacs network features
|
2009-02-16 17:41:58 +00:00
|
|
|
@direntry
|
Minor doc/misc/*.texi direntry fixes.
* ada-mode.texi, auth.texi, autotype.texi, calc.texi, cc-mode.texi:
* dired-x.texi, ebrowse.texi, ede.texi, edt.texi, eieio.texi:
* emacs-mime.texi, epa.texi, erc.texi, eshell.texi, eudc.texi:
* flymake.texi, gnus.texi, info.texi, mairix-el.texi, message.texi:
* newsticker.texi, org.texi, pgg.texi, rcirc.texi, reftex.texi:
* remember.texi, sasl.texi, semantic.texi, ses.texi, smtpmail.texi:
* speedbar.texi, tramp.texi, url.texi, viper.texi, widget.texi:
* woman.texi:
Start direntry descriptions in column 32, per Texinfo convention.
Make them end with a period.
2010-06-24 07:10:51 +00:00
|
|
|
* ERC: (erc). Powerful and extensible IRC client for Emacs.
|
2009-02-16 17:41:58 +00:00
|
|
|
@end direntry
|
|
|
|
|
2007-09-06 05:07:05 +00:00
|
|
|
@titlepage
|
|
|
|
@title ERC manual
|
|
|
|
@subtitle a full-featured IRC client
|
2011-02-19 21:20:34 +00:00
|
|
|
@subtitle for Emacs and XEmacs
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
@c The following two commands
|
|
|
|
@c start the copyright page.
|
|
|
|
@page
|
|
|
|
@vskip 0pt plus 1filll
|
|
|
|
@insertcopying
|
|
|
|
@end titlepage
|
|
|
|
|
|
|
|
@contents
|
|
|
|
|
|
|
|
@ifnottex
|
2012-10-06 01:13:01 +00:00
|
|
|
@node Top
|
2007-09-06 05:07:05 +00:00
|
|
|
@top ERC
|
|
|
|
|
|
|
|
@insertcopying
|
|
|
|
@end ifnottex
|
|
|
|
|
|
|
|
@menu
|
|
|
|
* Introduction:: What is ERC?
|
|
|
|
* Getting Started:: Quick Start guide to using ERC.
|
|
|
|
* Keystroke Summary:: Keystrokes used in ERC buffers.
|
|
|
|
* Modules:: Available modules for ERC.
|
|
|
|
* Advanced Usage:: Cool ways of using ERC.
|
2012-12-05 22:27:56 +00:00
|
|
|
* Getting Help and Reporting Bugs::
|
2007-09-06 05:07:05 +00:00
|
|
|
* History:: The history of ERC.
|
2008-01-26 21:49:41 +00:00
|
|
|
* GNU Free Documentation License:: The license for this documentation.
|
2007-09-06 05:07:05 +00:00
|
|
|
* Concept Index:: Search for terms.
|
|
|
|
|
|
|
|
@detailmenu
|
|
|
|
--- The Detailed Node Listing ---
|
|
|
|
|
|
|
|
Getting Started
|
|
|
|
|
|
|
|
* Sample Session:: Example of connecting to the #emacs channel
|
|
|
|
* Special Features:: Differences from standalone IRC clients
|
|
|
|
|
|
|
|
Advanced Usage
|
|
|
|
|
|
|
|
* Connecting:: Ways of connecting to an IRC server.
|
|
|
|
* Sample Configuration:: An example configuration file.
|
|
|
|
* Options:: Options that are available for ERC.
|
|
|
|
|
|
|
|
@end detailmenu
|
|
|
|
@end menu
|
|
|
|
|
2012-10-06 01:13:01 +00:00
|
|
|
@node Introduction
|
2007-09-06 05:07:05 +00:00
|
|
|
@chapter Introduction
|
|
|
|
|
|
|
|
ERC is a powerful, modular, and extensible IRC client for Emacs.
|
2012-10-06 01:42:02 +00:00
|
|
|
It is distributed with Emacs since version 22.1.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
It comes with the following capabilities enabled by default.
|
|
|
|
|
|
|
|
@itemize @bullet
|
|
|
|
@item Flood control
|
|
|
|
@item Timestamps
|
|
|
|
@item Join channels automatically
|
|
|
|
@item Buttonize URLs, nicknames, and other text
|
|
|
|
@item Wrap long lines
|
|
|
|
@item Highlight or remove IRC control characters
|
|
|
|
@item Highlight pals, fools, and other keywords
|
|
|
|
@item Detect netsplits
|
|
|
|
@item Complete nicknames and commands in a programmable fashion
|
|
|
|
@item Make displayed lines read-only
|
|
|
|
@item Input history
|
|
|
|
@item Track channel activity in the mode-line
|
|
|
|
|
|
|
|
@end itemize
|
|
|
|
|
|
|
|
|
2012-10-06 01:13:01 +00:00
|
|
|
@node Getting Started
|
2007-09-06 05:07:05 +00:00
|
|
|
@chapter Getting Started
|
|
|
|
@cindex settings
|
|
|
|
|
2012-10-06 01:42:02 +00:00
|
|
|
The command @kbd{M-x erc} will start ERC and prompt for the server to
|
|
|
|
connect to.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
If you want to place ERC settings in their own file, you can place them
|
|
|
|
in @file{~/.emacs.d/.ercrc.el}, creating it if necessary.
|
|
|
|
|
|
|
|
If you would rather use the Customize interface to change how ERC works,
|
|
|
|
do @kbd{M-x customize-group RET erc RET}. In particular, ERC comes with
|
|
|
|
lots of modules that may be enabled or disabled; to select which ones
|
|
|
|
you want, do @kbd{M-x customize-variable RET erc-modules RET}.
|
|
|
|
|
|
|
|
@menu
|
|
|
|
* Sample Session:: Example of connecting to the #emacs channel
|
|
|
|
* Special Features:: Differences from standalone IRC clients
|
|
|
|
@end menu
|
|
|
|
|
2012-10-06 01:13:01 +00:00
|
|
|
@node Sample Session
|
2007-09-06 05:07:05 +00:00
|
|
|
@section Sample Session
|
|
|
|
|
|
|
|
This is an example ERC session which shows how to connect to the #emacs
|
|
|
|
channel on Freenode. Another IRC channel on Freenode that may be of
|
|
|
|
interest is #erc, which is a channel where ERC users and developers hang
|
|
|
|
out.
|
|
|
|
|
|
|
|
@itemize @bullet
|
|
|
|
|
|
|
|
@item Connect to Freenode
|
|
|
|
|
|
|
|
Run @kbd{M-x erc}. Use ``irc.freenode.net'' as the IRC server, ``6667''
|
|
|
|
as the port, and choose a nickname.
|
|
|
|
|
|
|
|
@item Get used to the interface
|
|
|
|
|
|
|
|
Switch to the ``irc.freenode.net:6667'' buffer, if you're not already
|
|
|
|
there. You will see first some messages about checking for ident, and
|
|
|
|
then a bunch of other messages that describe the current IRC server.
|
|
|
|
|
|
|
|
@item Join the #emacs channel
|
|
|
|
|
|
|
|
In that buffer, type ``/join SPC #emacs'' and hit @kbd{RET}. Depending
|
|
|
|
on how you've set up ERC, either a new buffer for ``#emacs'' will be
|
|
|
|
displayed, or a new buffer called ``#emacs'' will be created in the
|
|
|
|
background. If the latter, switch to the ``#emacs'' buffer. You will
|
|
|
|
see the channel topic and a list of the people who are currently on the
|
|
|
|
channel.
|
|
|
|
|
|
|
|
@item Register your nickname with Freenode
|
|
|
|
|
|
|
|
If you would like to be able to talk with people privately on the
|
|
|
|
Freenode network, you will have to ``register'' your nickname. To do
|
|
|
|
so, switch to the ``irc.freenode.net:6667'' buffer and type ``/msg
|
|
|
|
NickServ register <password>'', replacing ``<password>'' with your
|
|
|
|
desired password. It should tell you that the operation was successful.
|
|
|
|
|
|
|
|
@item Talk to people in the channel
|
|
|
|
|
|
|
|
If you switch back to the ``#emacs'' buffer, you can type a message, and
|
|
|
|
everyone on the channel will see it.
|
|
|
|
|
|
|
|
@item Open a query buffer to talk to someone
|
|
|
|
|
|
|
|
If you want to talk with someone in private (this should usually not be
|
|
|
|
done for technical help, only for personal questions), type ``/query
|
|
|
|
<nick>'', replacing ``<nick>'' with the nickname of the person you would
|
|
|
|
like to talk to. Depending on how ERC is set up, you will either see a
|
|
|
|
new buffer with the name of the person, or such a buffer will be created
|
|
|
|
in the background and you will have to switch to it. Begin typing
|
|
|
|
messages, and you will be able to have a conversation.
|
|
|
|
|
|
|
|
Note that if the other person is not registered, you will not be able to
|
|
|
|
talk with them.
|
|
|
|
|
|
|
|
@end itemize
|
|
|
|
|
2012-10-06 01:13:01 +00:00
|
|
|
@node Special Features
|
2007-09-06 05:07:05 +00:00
|
|
|
@section Special Features
|
|
|
|
|
|
|
|
ERC has some features that distinguish it from some IRC clients.
|
|
|
|
|
|
|
|
@itemize @bullet
|
|
|
|
|
|
|
|
@item multiple channels and multiple servers
|
|
|
|
|
|
|
|
Every channel is put in a separate buffer. Several IRC servers may be
|
|
|
|
connected to at the same time.
|
|
|
|
|
|
|
|
@cindex query buffers
|
|
|
|
@item private message separation
|
|
|
|
|
|
|
|
Private conversations are treated as channels, and are put into separate
|
|
|
|
buffers in Emacs. We call these ``query buffers''.
|
|
|
|
|
|
|
|
@item highlighting
|
|
|
|
|
2007-09-19 03:29:03 +00:00
|
|
|
Some occurrences of words can be highlighted, which makes it easier to
|
2007-09-06 05:07:05 +00:00
|
|
|
track different kinds of conversations.
|
|
|
|
|
|
|
|
@item notification
|
|
|
|
|
|
|
|
ERC can notify you that certain users are online.
|
|
|
|
|
|
|
|
@item channel tracking
|
|
|
|
|
|
|
|
Channels can be hidden and conversation continue in the background. You
|
|
|
|
are notified when something is said in such a channel that is not
|
|
|
|
currently visible. This makes it easy to get Real Work done while still
|
|
|
|
maintaining an IRC presence.
|
|
|
|
|
|
|
|
@item nick completion
|
|
|
|
|
|
|
|
ERC can complete words upon hitting @kbd{TAB}, which eases the writing
|
|
|
|
of nicknames in messages.
|
|
|
|
|
|
|
|
@cindex history ring
|
|
|
|
@item history
|
|
|
|
|
|
|
|
Past actions are kept in history rings for future use. To navigate a
|
|
|
|
history ring, hit @kbd{M-p} to go backwards and @kbd{M-n} to go
|
|
|
|
forwards.
|
|
|
|
|
|
|
|
@item multiple languages
|
|
|
|
|
|
|
|
Different channels and servers may have different language encodings.
|
|
|
|
|
|
|
|
In addition, it is possible to translate the messages that ERC uses into
|
|
|
|
multiple languages. Please contact the developers of ERC at
|
|
|
|
@email{erc-discuss@@gnu.org} if you are interested in helping with the
|
|
|
|
translation effort.
|
|
|
|
|
|
|
|
@item user scripting
|
|
|
|
|
2012-12-05 22:27:56 +00:00
|
|
|
Users can load scripts (e.g., auto greeting scripts) when ERC starts up.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
It is also possible to make custom IRC commands, if you know a little
|
|
|
|
Emacs Lisp. Just make an Emacs Lisp function and call it
|
|
|
|
@code{erc-cmd-NEWCOMMAND}, where @code{NEWCOMMAND} is the name of the
|
|
|
|
new command in capital letters.
|
|
|
|
|
|
|
|
@item auto reconnect
|
|
|
|
|
|
|
|
If the connection goes away at some point, ERC will try to reconnect
|
|
|
|
automatically. If it fails to reconnect, and you want to try to
|
|
|
|
manually reestablish the connection at some later point, switch to an
|
|
|
|
ERC buffer and run the @code{/RECONNECT} command.
|
|
|
|
|
|
|
|
@end itemize
|
|
|
|
|
|
|
|
|
2012-10-06 01:13:01 +00:00
|
|
|
@node Keystroke Summary
|
2007-09-06 05:07:05 +00:00
|
|
|
@chapter Keys Used in ERC
|
|
|
|
@cindex keystrokes
|
|
|
|
|
|
|
|
This is a summary of keystrokes available in every ERC buffer.
|
|
|
|
|
|
|
|
@table @kbd
|
|
|
|
|
|
|
|
@item C-a or <home> (`erc-bol')
|
|
|
|
Go to beginning of line or end of prompt.
|
|
|
|
|
|
|
|
@item RET (`erc-send-current-line')
|
|
|
|
Send the current line
|
|
|
|
|
|
|
|
@item TAB (`erc-complete-word')
|
|
|
|
If at prompt, complete the current word.
|
|
|
|
Otherwise, move to the next link or button.
|
|
|
|
|
|
|
|
@item M-TAB (`ispell-complete-word')
|
|
|
|
Complete the given word, using ispell.
|
|
|
|
|
|
|
|
@item C-c C-a (`erc-bol')
|
|
|
|
Go to beginning of line or end of prompt.
|
|
|
|
|
|
|
|
@item C-c C-b (`erc-iswitchb')
|
|
|
|
Use `iswitchb-read-buffer' to prompt for a ERC buffer to switch to.
|
|
|
|
|
|
|
|
@item C-c C-c (`erc-toggle-interpret-controls')
|
|
|
|
Toggle interpretation of control sequences in messages.
|
|
|
|
|
|
|
|
@item C-c C-d (`erc-input-action')
|
|
|
|
Interactively input a user action and send it to IRC.
|
|
|
|
|
|
|
|
@item C-c C-e (`erc-toggle-ctcp-autoresponse')
|
|
|
|
Toggle automatic CTCP replies (like VERSION and PING).
|
|
|
|
|
|
|
|
@item C-c C-f (`erc-toggle-flood-control')
|
|
|
|
Toggle use of flood control on sent messages.
|
|
|
|
|
|
|
|
@item C-c TAB (`erc-invite-only-mode')
|
|
|
|
Turn on the invite only mode (+i) for the current channel.
|
|
|
|
|
|
|
|
@item C-c C-j (`erc-join-channel')
|
|
|
|
Join channel. If point is at the beginning of a channel name, use that
|
|
|
|
as default.
|
|
|
|
|
|
|
|
@item C-c C-k (`erc-go-to-log-matches-buffer')
|
|
|
|
Interactively open an erc-log-matches buffer
|
|
|
|
|
|
|
|
@item C-c C-l (`erc-save-buffer-in-logs')
|
|
|
|
Append buffer contents to the log file, if logging is enabled.
|
|
|
|
|
|
|
|
@item C-c C-n (`erc-channel-names')
|
|
|
|
Run "/names #channel" in the current channel.
|
|
|
|
|
|
|
|
@item C-c C-o (`erc-get-channel-mode-from-keypress')
|
|
|
|
Read a key sequence and call the corresponding channel mode function.
|
|
|
|
After doing @kbd{C-c C-o}, type in a channel mode letter.
|
|
|
|
|
|
|
|
@kbd{C-g} means quit.
|
|
|
|
@kbd{RET} lets you type more than one mode at a time.
|
|
|
|
If @kbd{l} is pressed, @code{erc-set-channel-limit} gets called.
|
|
|
|
If @kbd{k} is pressed, @code{erc-set-channel-key} gets called.
|
|
|
|
Anything else will be sent to `erc-toggle-channel-mode'.
|
|
|
|
|
|
|
|
@item C-c C-p (`erc-part-from-channel')
|
|
|
|
Part from the current channel and prompt for a reason.
|
|
|
|
|
|
|
|
@item C-c C-q (`erc-quit-server')
|
|
|
|
Disconnect from current server after prompting for reason.
|
|
|
|
|
|
|
|
@item C-c C-r (`erc-remove-text-properties-region')
|
|
|
|
Clears the region (start,end) in object from all colors, etc.
|
|
|
|
|
|
|
|
@item C-c C-t (`erc-set-topic')
|
|
|
|
Prompt for a topic for the current channel.
|
|
|
|
|
|
|
|
@item C-c C-u (`erc-kill-input')
|
|
|
|
Kill current input line using `erc-bol' followed by `kill-line'.
|
|
|
|
|
|
|
|
@end table
|
|
|
|
|
|
|
|
|
2012-10-06 01:13:01 +00:00
|
|
|
@node Modules
|
2007-09-06 05:07:05 +00:00
|
|
|
@chapter Modules
|
|
|
|
@cindex modules
|
|
|
|
|
|
|
|
One way to add functionality to ERC is to customize which of its many
|
|
|
|
modules are loaded.
|
|
|
|
|
|
|
|
There is a spiffy customize interface, which may be reached by typing
|
|
|
|
@kbd{M-x customize-option erc-modules RET}. Alternatively, set
|
|
|
|
@code{erc-modules} manually and then call @code{erc-update-modules}.
|
|
|
|
|
|
|
|
The following is a list of available modules.
|
|
|
|
|
|
|
|
@table @code
|
|
|
|
|
|
|
|
@cindex modules, autoaway
|
|
|
|
@item autoaway
|
|
|
|
Set away status automatically
|
|
|
|
|
|
|
|
@cindex modules, autojoin
|
|
|
|
@item autojoin
|
|
|
|
Join channels automatically
|
|
|
|
|
|
|
|
@cindex modules, bbdb
|
|
|
|
@item bbdb
|
|
|
|
Integrate with the Big Brother Database
|
|
|
|
|
|
|
|
@cindex modules, button
|
|
|
|
@item button
|
|
|
|
Buttonize URLs, nicknames, and other text
|
|
|
|
|
|
|
|
@cindex modules, capab-identify
|
|
|
|
@item capab-identify
|
|
|
|
Mark unidentified users on freenode and other servers supporting CAPAB.
|
|
|
|
|
|
|
|
@cindex modules, completion
|
|
|
|
@cindex modules, pcomplete
|
|
|
|
@item completion (aka pcomplete)
|
|
|
|
Complete nicknames and commands (programmable)
|
|
|
|
|
|
|
|
@cindex modules, fill
|
|
|
|
@item fill
|
|
|
|
Wrap long lines
|
|
|
|
|
|
|
|
@cindex modules, identd
|
|
|
|
@item identd
|
|
|
|
Launch an identd server on port 8113
|
|
|
|
|
|
|
|
@cindex modules, irccontrols
|
|
|
|
@item irccontrols
|
|
|
|
Highlight or remove IRC control characters
|
|
|
|
|
|
|
|
@cindex modules, log
|
|
|
|
@item log
|
|
|
|
Save buffers in logs
|
|
|
|
|
|
|
|
@cindex modules, match
|
|
|
|
@item match
|
|
|
|
Highlight pals, fools, and other keywords
|
|
|
|
|
|
|
|
@cindex modules, menu
|
|
|
|
@item menu
|
|
|
|
Display a menu in ERC buffers
|
|
|
|
|
|
|
|
@cindex modules, netsplit
|
|
|
|
@item netsplit
|
|
|
|
Detect netsplits
|
|
|
|
|
|
|
|
@cindex modules, noncommands
|
|
|
|
@item noncommands
|
|
|
|
Don't display non-IRC commands after evaluation
|
|
|
|
|
|
|
|
@cindex modules, notify
|
|
|
|
@item notify
|
|
|
|
Notify when the online status of certain users changes
|
|
|
|
|
2012-11-13 03:40:44 +00:00
|
|
|
@cindex modules, notifications
|
|
|
|
@item notifications
|
|
|
|
Send you a notification when you get a private message,
|
|
|
|
or your nickname is mentioned
|
|
|
|
|
2007-09-06 05:07:05 +00:00
|
|
|
@cindex modules, page
|
|
|
|
@item page
|
|
|
|
Process CTCP PAGE requests from IRC
|
|
|
|
|
|
|
|
@cindex modules, readonly
|
|
|
|
@item readonly
|
|
|
|
Make displayed lines read-only
|
|
|
|
|
|
|
|
@cindex modules, replace
|
|
|
|
@item replace
|
|
|
|
Replace text in messages
|
|
|
|
|
|
|
|
@cindex modules, ring
|
|
|
|
@item ring
|
|
|
|
Enable an input history
|
|
|
|
|
|
|
|
@cindex modules, scrolltobottom
|
|
|
|
@item scrolltobottom
|
|
|
|
Scroll to the bottom of the buffer
|
|
|
|
|
|
|
|
@cindex modules, services
|
|
|
|
@item services
|
|
|
|
Identify to Nickserv (IRC Services) automatically
|
|
|
|
|
|
|
|
@cindex modules, smiley
|
|
|
|
@item smiley
|
|
|
|
Convert smileys to pretty icons
|
|
|
|
|
|
|
|
@cindex modules, sound
|
|
|
|
@item sound
|
|
|
|
Play sounds when you receive CTCP SOUND requests
|
|
|
|
|
|
|
|
@cindex modules, spelling
|
|
|
|
@item spelling
|
|
|
|
Check spelling of messages
|
|
|
|
|
|
|
|
@cindex modules, stamp
|
|
|
|
@item stamp
|
|
|
|
Add timestamps to messages
|
|
|
|
|
|
|
|
@cindex modules, track
|
|
|
|
@item track
|
|
|
|
Track channel activity in the mode-line
|
|
|
|
|
|
|
|
@cindex modules, truncate
|
|
|
|
@item truncate
|
|
|
|
Truncate buffers to a certain size
|
|
|
|
|
|
|
|
@cindex modules, unmorse
|
|
|
|
@item unmorse
|
|
|
|
Translate morse code in messages
|
|
|
|
|
|
|
|
@end table
|
|
|
|
|
2008-12-23 06:58:19 +00:00
|
|
|
@c PRE5_4: Document every option of every module in its own subnode
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
2012-10-06 01:13:01 +00:00
|
|
|
@node Advanced Usage
|
2007-09-06 05:07:05 +00:00
|
|
|
@chapter Advanced Usage
|
|
|
|
@cindex advanced topics
|
|
|
|
|
|
|
|
@menu
|
|
|
|
* Connecting:: Ways of connecting to an IRC server.
|
|
|
|
* Sample Configuration:: An example configuration file.
|
|
|
|
* Options:: Options that are available for ERC.
|
|
|
|
@end menu
|
|
|
|
|
2012-10-06 01:13:01 +00:00
|
|
|
@node Connecting
|
2007-09-06 05:07:05 +00:00
|
|
|
@section Connecting to an IRC Server
|
|
|
|
@cindex connecting
|
|
|
|
|
|
|
|
The easiest way to connect to an IRC server is to call @kbd{M-x erc}.
|
|
|
|
If you want to assign this function to a keystroke, the following will
|
|
|
|
help you figure out its parameters.
|
|
|
|
|
|
|
|
@defun erc
|
2012-12-05 22:27:56 +00:00
|
|
|
Select connection parameters and run ERC@.
|
2007-09-06 05:07:05 +00:00
|
|
|
Non-interactively, it takes the following keyword arguments.
|
|
|
|
|
|
|
|
@itemize @bullet
|
|
|
|
@item @var{server}
|
|
|
|
@item @var{port}
|
|
|
|
@item @var{nick}
|
|
|
|
@item @var{password}
|
|
|
|
@item @var{full-name}
|
|
|
|
@end itemize
|
|
|
|
|
|
|
|
That is, if called with the following arguments, @var{server} and
|
|
|
|
@var{full-name} will be set to those values, whereas
|
|
|
|
@code{erc-compute-port}, @code{erc-compute-nick} and
|
|
|
|
@code{erc-compute-full-name} will be invoked for the values of the other
|
|
|
|
parameters.
|
|
|
|
|
|
|
|
@example
|
|
|
|
(erc :server "irc.freenode.net" :full-name "Harry S Truman")
|
|
|
|
@end example
|
|
|
|
@end defun
|
|
|
|
|
|
|
|
@subheading Server
|
|
|
|
|
|
|
|
@defun erc-compute-server &optional server
|
|
|
|
Return an IRC server name.
|
|
|
|
|
2012-11-13 08:16:58 +00:00
|
|
|
This tries a number of increasingly more default methods until a non-@code{nil}
|
2007-09-06 05:07:05 +00:00
|
|
|
value is found.
|
|
|
|
|
|
|
|
@itemize @bullet
|
|
|
|
@item @var{server} (the argument passed to this function)
|
|
|
|
@item The @code{erc-server} option
|
|
|
|
@item The value of the IRCSERVER environment variable
|
|
|
|
@item The @code{erc-default-server} variable
|
|
|
|
@end itemize
|
|
|
|
|
|
|
|
@end defun
|
|
|
|
|
2012-11-13 08:16:58 +00:00
|
|
|
@defopt erc-server
|
2007-09-06 05:07:05 +00:00
|
|
|
IRC server to use if one is not provided.
|
|
|
|
@end defopt
|
|
|
|
|
|
|
|
@subheading Port
|
|
|
|
|
|
|
|
@defun erc-compute-port &optional port
|
|
|
|
Return a port for an IRC server.
|
|
|
|
|
2012-11-13 08:16:58 +00:00
|
|
|
This tries a number of increasingly more default methods until a non-@code{nil}
|
2007-09-06 05:07:05 +00:00
|
|
|
value is found.
|
|
|
|
|
|
|
|
@itemize @bullet
|
|
|
|
@item @var{port} (the argument passed to this function)
|
|
|
|
@item The @code{erc-port} option
|
|
|
|
@item The @code{erc-default-port} variable
|
|
|
|
@end itemize
|
|
|
|
|
|
|
|
@end defun
|
|
|
|
|
|
|
|
@defopt erc-port
|
|
|
|
IRC port to use if not specified.
|
|
|
|
|
|
|
|
This can be either a string or a number.
|
|
|
|
@end defopt
|
|
|
|
|
|
|
|
@subheading Nick
|
|
|
|
|
|
|
|
@defun erc-compute-nick &optional nick
|
|
|
|
Return user's IRC nick.
|
|
|
|
|
|
|
|
This tries a number of increasingly more default methods until a
|
2012-11-13 08:16:58 +00:00
|
|
|
non-@code{nil} value is found.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
@itemize
|
|
|
|
@item @var{nick} (the argument passed to this function)
|
|
|
|
@item The @code{erc-nick} option
|
|
|
|
@item The value of the IRCNICK environment variable
|
|
|
|
@item The result from the @code{user-login-name} function
|
|
|
|
@end itemize
|
|
|
|
|
|
|
|
@end defun
|
|
|
|
|
|
|
|
@defopt erc-nick
|
|
|
|
Nickname to use if one is not provided.
|
|
|
|
|
|
|
|
This can be either a string, or a list of strings.
|
|
|
|
In the latter case, if the first nick in the list is already in use,
|
|
|
|
other nicks are tried in the list order.
|
|
|
|
@end defopt
|
|
|
|
|
|
|
|
@defopt erc-nick-uniquifier
|
|
|
|
The string to append to the nick if it is already in use.
|
|
|
|
@end defopt
|
|
|
|
|
|
|
|
@defopt erc-try-new-nick-p
|
2012-11-13 08:16:58 +00:00
|
|
|
If the nickname you chose isn't available, and this option is non-@code{nil},
|
2007-09-06 05:07:05 +00:00
|
|
|
ERC should automatically attempt to connect with another nickname.
|
|
|
|
|
|
|
|
You can manually set another nickname with the /NICK command.
|
|
|
|
@end defopt
|
|
|
|
|
2012-11-13 08:05:42 +00:00
|
|
|
@subheading Password
|
|
|
|
@cindex password
|
|
|
|
|
|
|
|
@defopt erc-prompt-for-password
|
|
|
|
If non-@code{nil} (the default), @kbd{M-x erc} prompts for a password.
|
|
|
|
@end defopt
|
|
|
|
|
|
|
|
If you prefer, you can set this option to @code{nil} and use the
|
|
|
|
@code{auth-source} mechanism to store your password. For instance, if
|
|
|
|
you use @file{~/.authinfo} as your auth-source backend, then put
|
|
|
|
something like the following in that file:
|
|
|
|
|
|
|
|
@example
|
|
|
|
machine irc.example.net login "#fsf" password sEcReT
|
|
|
|
@end example
|
|
|
|
|
|
|
|
@noindent
|
|
|
|
ERC also consults @code{auth-source} to find any channel keys required
|
|
|
|
for the channels that you wish to autojoin, as specified by the
|
|
|
|
variable @code{erc-autojoin-channels-alist}.
|
|
|
|
|
|
|
|
For more details, @pxref{Top,,auth-source, auth, Emacs auth-source Library}.
|
|
|
|
|
|
|
|
|
2007-09-06 05:07:05 +00:00
|
|
|
@subheading Full name
|
|
|
|
|
|
|
|
@defun erc-compute-full-name &optional full-name
|
|
|
|
Return user's full name.
|
|
|
|
|
|
|
|
This tries a number of increasingly more default methods until a
|
2012-11-13 08:16:58 +00:00
|
|
|
non-@code{nil} value is found.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
@itemize @bullet
|
|
|
|
@item @var{full-name} (the argument passed to this function)
|
|
|
|
@item The @code{erc-user-full-name} option
|
|
|
|
@item The value of the IRCNAME environment variable
|
|
|
|
@item The result from the @code{user-full-name} function
|
|
|
|
@end itemize
|
|
|
|
|
|
|
|
@end defun
|
|
|
|
|
|
|
|
@defopt erc-user-full-name
|
|
|
|
User full name.
|
|
|
|
|
|
|
|
This can be either a string or a function to call.
|
|
|
|
@end defopt
|
|
|
|
|
2012-10-06 01:13:01 +00:00
|
|
|
@node Sample Configuration
|
2007-09-06 05:07:05 +00:00
|
|
|
@section Sample Configuration
|
|
|
|
@cindex configuration, sample
|
|
|
|
|
2012-12-05 22:27:56 +00:00
|
|
|
Here is an example of configuration settings for ERC@. This can go into
|
2007-09-06 05:07:05 +00:00
|
|
|
your Emacs configuration file. Everything after the @code{(require
|
|
|
|
'erc)} command can optionally go into @file{~/.emacs.d/.ercrc.el}.
|
|
|
|
|
|
|
|
@lisp
|
|
|
|
;;; Sample ERC configuration
|
|
|
|
|
|
|
|
;; Add the ERC directory to load path -- you don't need this if you are
|
|
|
|
;; using the version of ERC that comes with Emacs
|
|
|
|
(add-to-list 'load-path "~/elisp/erc")
|
|
|
|
|
|
|
|
;; Load ERC
|
|
|
|
(require 'erc)
|
|
|
|
|
|
|
|
;; Load authentication info from an external source. Put sensitive
|
|
|
|
;; passwords and the like in here.
|
|
|
|
(load "~/.emacs.d/.erc-auth")
|
|
|
|
|
|
|
|
;; This is an example of how to make a new command. Type "/uptime" to
|
|
|
|
;; use it.
|
|
|
|
(defun erc-cmd-UPTIME (&rest ignore)
|
|
|
|
"Display the uptime of the system, as well as some load-related
|
|
|
|
stuff, to the current ERC buffer."
|
|
|
|
(let ((uname-output
|
|
|
|
(replace-regexp-in-string
|
|
|
|
", load average: " "] @{Load average@} ["
|
|
|
|
;; Collapse spaces, remove
|
|
|
|
(replace-regexp-in-string
|
|
|
|
" +" " "
|
|
|
|
;; Remove beginning and trailing whitespace
|
|
|
|
(replace-regexp-in-string
|
|
|
|
"^ +\\|[ \n]+$" ""
|
|
|
|
(shell-command-to-string "uptime"))))))
|
|
|
|
(erc-send-message
|
|
|
|
(concat "@{Uptime@} [" uname-output "]"))))
|
|
|
|
|
|
|
|
;; This causes ERC to connect to the Freenode network upon hitting
|
|
|
|
;; C-c e f. Replace MYNICK with your IRC nick.
|
|
|
|
(global-set-key "\C-cef" (lambda () (interactive)
|
|
|
|
(erc :server "irc.freenode.net" :port "6667"
|
|
|
|
:nick "MYNICK")))
|
|
|
|
|
|
|
|
;; This causes ERC to connect to the IRC server on your own machine (if
|
|
|
|
;; you have one) upon hitting C-c e b. Replace MYNICK with your IRC
|
|
|
|
;; nick. Often, people like to run bitlbee (http://bitlbee.org/) as an
|
|
|
|
;; AIM/Jabber/MSN to IRC gateway, so that they can use ERC to chat with
|
|
|
|
;; people on those networks.
|
|
|
|
(global-set-key "\C-ceb" (lambda () (interactive)
|
|
|
|
(erc :server "localhost" :port "6667"
|
|
|
|
:nick "MYNICK")))
|
|
|
|
|
2012-12-05 22:27:56 +00:00
|
|
|
;; Make C-c RET (or C-c C-RET) send messages instead of RET. This has
|
2007-09-06 05:07:05 +00:00
|
|
|
;; been commented out to avoid confusing new users.
|
|
|
|
;; (define-key erc-mode-map (kbd "RET") nil)
|
|
|
|
;; (define-key erc-mode-map (kbd "C-c RET") 'erc-send-current-line)
|
|
|
|
;; (define-key erc-mode-map (kbd "C-c C-RET") 'erc-send-current-line)
|
|
|
|
|
|
|
|
;;; Options
|
|
|
|
|
|
|
|
;; Join the #emacs and #erc channels whenever connecting to Freenode.
|
|
|
|
(setq erc-autojoin-channels-alist '(("freenode.net" "#emacs" "#erc")))
|
|
|
|
|
|
|
|
;; Interpret mIRC-style color commands in IRC chats
|
|
|
|
(setq erc-interpret-mirc-color t)
|
|
|
|
|
|
|
|
;; The following are commented out by default, but users of other
|
|
|
|
;; non-Emacs IRC clients might find them useful.
|
|
|
|
;; Kill buffers for channels after /part
|
|
|
|
;; (setq erc-kill-buffer-on-part t)
|
|
|
|
;; Kill buffers for private queries after quitting the server
|
|
|
|
;; (setq erc-kill-queries-on-quit t)
|
|
|
|
;; Kill buffers for server messages after quitting the server
|
|
|
|
;; (setq erc-kill-server-buffer-on-quit t)
|
|
|
|
@end lisp
|
|
|
|
|
2012-10-06 01:13:01 +00:00
|
|
|
@node Options
|
2007-09-06 05:07:05 +00:00
|
|
|
@section Options
|
|
|
|
@cindex options
|
|
|
|
|
2008-12-23 06:58:19 +00:00
|
|
|
@c PRE5_4: (Node) Document every ERC option (module options go in
|
2007-09-06 05:07:05 +00:00
|
|
|
@c previous chapter)
|
|
|
|
|
2012-11-13 08:14:15 +00:00
|
|
|
This section is extremely incomplete. For now, the easiest way to
|
|
|
|
check out all the available options for ERC is to do
|
2007-09-06 05:07:05 +00:00
|
|
|
@kbd{M-x customize-group erc RET}.
|
|
|
|
|
2012-11-13 08:14:15 +00:00
|
|
|
@defopt erc-hide-list
|
2012-12-05 22:27:56 +00:00
|
|
|
If non, @code{nil}, this is a list of IRC message types to hide, e.g.:
|
2012-11-13 08:14:15 +00:00
|
|
|
|
|
|
|
@example
|
|
|
|
(setq erc-hide-list '("JOIN" "PART" "QUIT"))
|
|
|
|
@end example
|
|
|
|
@end defopt
|
|
|
|
|
|
|
|
@defopt erc-lurker-hide-list
|
|
|
|
Like @code{erc-hide-list}, but only applies to messages sent by
|
|
|
|
lurkers. The function @code{erc-lurker-p} determines whether a given
|
|
|
|
nickname is considerd a lurker.
|
|
|
|
@end defopt
|
|
|
|
|
2007-09-06 05:07:05 +00:00
|
|
|
|
2012-10-06 01:13:01 +00:00
|
|
|
@node Getting Help and Reporting Bugs
|
2007-09-06 05:07:05 +00:00
|
|
|
@chapter Getting Help and Reporting Bugs
|
|
|
|
@cindex help, getting
|
|
|
|
@cindex bugs, reporting
|
|
|
|
|
|
|
|
After you have read this guide, if you still have questions about ERC,
|
|
|
|
or if you have bugs to report, there are several places you can go.
|
|
|
|
|
|
|
|
@itemize @bullet
|
|
|
|
|
|
|
|
@item
|
2007-09-08 03:07:09 +00:00
|
|
|
@uref{http://www.emacswiki.org/cgi-bin/wiki/ERC} is the
|
2012-12-05 22:27:56 +00:00
|
|
|
emacswiki.org page for ERC@. Anyone may add tips, hints, etc. to it.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
@item
|
2012-10-06 01:42:02 +00:00
|
|
|
You can ask questions about using ERC on the Emacs mailing list,
|
|
|
|
@uref{http://lists.gnu.org/mailman/listinfo/help-gnu-emacs}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
@item
|
|
|
|
You can visit the IRC Freenode channel @samp{#emacs}. Many of the
|
|
|
|
contributors are frequently around and willing to answer your
|
|
|
|
questions.
|
|
|
|
|
2012-10-06 01:42:02 +00:00
|
|
|
@item
|
|
|
|
To report a bug in ERC, use @kbd{M-x report-emacs-bug}.
|
|
|
|
|
2007-09-06 05:07:05 +00:00
|
|
|
@end itemize
|
|
|
|
|
|
|
|
|
2012-10-06 01:13:01 +00:00
|
|
|
@node History
|
2007-09-06 05:07:05 +00:00
|
|
|
@chapter History
|
|
|
|
@cindex history, of ERC
|
|
|
|
|
|
|
|
ERC was originally written by Alexander L. Belikoff
|
|
|
|
@email{abel@@bfr.co.il} and Sergey Berezin
|
|
|
|
@email{sergey.berezin@@cs.cmu.edu}. They stopped development around
|
|
|
|
December 1999. Their last released version was ERC 2.0.
|
|
|
|
|
|
|
|
P.S.: If one of the original developers of ERC reads this, we'd like to
|
|
|
|
receive additional information for this file and hear comments in
|
|
|
|
general.
|
|
|
|
|
|
|
|
@itemize
|
|
|
|
@item 2001
|
|
|
|
|
|
|
|
In June 2001, Mario Lang @email{mlang@@delysid.org} and Alex Schroeder
|
|
|
|
@email{alex@@gnu.org} took over development and created a ERC Project at
|
|
|
|
@uref{http://sourceforge.net/projects/erc}.
|
|
|
|
|
|
|
|
In reaction to a mail about the new ERC development effort, Sergey
|
|
|
|
Berezin said, ``First of all, I'm glad that my version of ERC is being
|
|
|
|
used out there. The thing is, I do not have free time and enough
|
|
|
|
incentive anymore to work on ERC, so I would be happy if you guys take
|
|
|
|
over the project entirely.''
|
|
|
|
|
|
|
|
So we happily hacked away on ERC, and soon after (September 2001)
|
|
|
|
released the next "stable" version, 2.1.
|
|
|
|
|
|
|
|
Most of the development of the new ERC happened on #emacs on
|
|
|
|
irc.openprojects.net. Over time, many people contributed code, ideas,
|
|
|
|
bugfixes, and a lot of alpha/beta/gamma testing.
|
|
|
|
|
|
|
|
See the @file{CREDITS} file for a list of contributors.
|
|
|
|
|
|
|
|
@item 2003
|
|
|
|
|
|
|
|
ERC 3.0 was released.
|
|
|
|
|
|
|
|
@item 2004
|
|
|
|
|
|
|
|
ERC 4.0 was released.
|
|
|
|
|
|
|
|
@item 2005
|
|
|
|
|
|
|
|
ERC 5.0 was released. Michael Olson @email{mwolson@@gnu.org} became
|
|
|
|
the release manager and eventually the maintainer.
|
|
|
|
|
|
|
|
After some discussion between him and the Emacs developers, it was
|
|
|
|
decided to include ERC in Emacs.
|
|
|
|
|
|
|
|
@item 2006
|
|
|
|
|
|
|
|
ERC 5.1 was released. It was subsequently included in Emacs 22.
|
|
|
|
|
|
|
|
ERC became an official GNU project, and development moved to
|
|
|
|
@uref{http://sv.gnu.org/projects/erc}. We switched to using GNU Arch as
|
|
|
|
our revision control system. Our mailing list address changed as well.
|
|
|
|
|
2008-01-26 21:49:41 +00:00
|
|
|
@item 2007
|
|
|
|
|
|
|
|
We switched to using git for our version control system.
|
|
|
|
|
2012-10-06 01:42:02 +00:00
|
|
|
@item 2009+
|
|
|
|
|
|
|
|
Since about 2009, ERC is no longer developed as a separate project, but
|
|
|
|
is maintained as part of Emacs.
|
|
|
|
|
2007-09-06 05:07:05 +00:00
|
|
|
@end itemize
|
|
|
|
|
2012-10-06 01:13:01 +00:00
|
|
|
@node GNU Free Documentation License
|
|
|
|
@appendix GNU Free Documentation License
|
2007-09-06 05:07:05 +00:00
|
|
|
@include doclicense.texi
|
|
|
|
|
2012-10-06 01:13:01 +00:00
|
|
|
@node Concept Index
|
2007-09-06 05:07:05 +00:00
|
|
|
@unnumbered Index
|
|
|
|
|
|
|
|
@printindex cp
|
|
|
|
|
|
|
|
@bye
|