2007-09-06 05:07:05 +00:00
|
|
|
\input texinfo
|
|
|
|
@c %**start of header
|
2014-06-10 02:20:31 +00:00
|
|
|
@setfilename ../../info/erc.info
|
2007-09-06 05:07:05 +00:00
|
|
|
@settitle ERC Manual
|
2021-10-15 20:51:59 +00:00
|
|
|
@set ERCVER 5.4.1
|
2021-10-15 02:02:02 +00:00
|
|
|
@set ERCDIST as distributed with Emacs @value{EMACSVER}
|
Fix single-quoting style in PDF manuals
The PDF versions of the GNU manuals used curved single quotes to
represent grave accent and apostrophe, which made it a pain to cut
and paste code examples from them. Fix the PDF versions to use
grave accent and apostrophe for Lisp source code, keystrokes, etc.
This change does not affect the info files, nor does it affect
ordinary uses of curved single quotes in PDF.
* doc/emacs/docstyle.texi: New file, which specifies treatment for
grave accent and apostrophe, as well as the document encoding.
* doc/emacs/emacs-xtra.texi, doc/emacs/emacs.texi:
* doc/lispintro/emacs-lisp-intro.texi:
* doc/lispref/back.texi, doc/lispref/book-spine.texi:
* doc/lispref/elisp.texi, doc/lispref/lay-flat.texi:
* doc/misc/ada-mode.texi, doc/misc/auth.texi:
* doc/misc/autotype.texi, doc/misc/bovine.texi, doc/misc/calc.texi:
* doc/misc/cc-mode.texi, doc/misc/cl.texi, doc/misc/dbus.texi:
* doc/misc/dired-x.texi, doc/misc/ebrowse.texi, doc/misc/ede.texi:
* doc/misc/ediff.texi, doc/misc/edt.texi, doc/misc/efaq-w32.texi:
* doc/misc/efaq.texi, doc/misc/eieio.texi, doc/misc/emacs-gnutls.texi:
* doc/misc/emacs-mime.texi, doc/misc/epa.texi, doc/misc/erc.texi:
* doc/misc/ert.texi, doc/misc/eshell.texi, doc/misc/eudc.texi:
* doc/misc/eww.texi, doc/misc/flymake.texi, doc/misc/forms.texi:
* doc/misc/gnus-coding.texi, doc/misc/gnus-faq.texi:
* doc/misc/gnus.texi, doc/misc/htmlfontify.texi:
* doc/misc/idlwave.texi, doc/misc/ido.texi, doc/misc/info.texi:
* doc/misc/mairix-el.texi, doc/misc/message.texi, doc/misc/mh-e.texi:
* doc/misc/newsticker.texi, doc/misc/nxml-mode.texi:
* doc/misc/octave-mode.texi, doc/misc/org.texi, doc/misc/pcl-cvs.texi:
* doc/misc/pgg.texi, doc/misc/rcirc.texi, doc/misc/reftex.texi:
* doc/misc/remember.texi, doc/misc/sasl.texi, doc/misc/sc.texi:
* doc/misc/semantic.texi, doc/misc/ses.texi, doc/misc/sieve.texi:
* doc/misc/smtpmail.texi, doc/misc/speedbar.texi:
* doc/misc/srecode.texi, doc/misc/todo-mode.texi, doc/misc/tramp.texi:
* doc/misc/url.texi, doc/misc/vhdl-mode.texi, doc/misc/vip.texi:
* doc/misc/viper.texi, doc/misc/widget.texi, doc/misc/wisent.texi:
* doc/misc/woman.texi:
Use it instead of '@documentencoding UTF-8', to lessen the need for
global changes like this in the future.
* doc/emacs/Makefile.in (EMACS_XTRA):
* doc/lispintro/Makefile.in (srcs):
* doc/lispref/Makefile.in (srcs):
Add dependency on docstyle.texi.
* doc/misc/Makefile.in (style): New macro.
(${buildinfodir}/%.info, %.dvi, %.pdf, %.html)
(${buildinfodir}/ccmode.info, ${buildinfodir}/efaq%.info, gnus_deps):
Use it.
2015-05-01 19:05:53 +00:00
|
|
|
@include docstyle.texi
|
2007-09-06 05:07:05 +00:00
|
|
|
@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
|
2021-10-15 02:02:02 +00:00
|
|
|
This manual is for ERC @value{ERCVER} @value{ERCDIST}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
2022-01-01 07:45:51 +00:00
|
|
|
Copyright @copyright{} 2005--2022 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
|
2014-05-07 17:34:53 +00:00
|
|
|
Invariant Sections, with the Front-Cover Texts being ``A GNU Manual,''
|
2008-06-16 01:57:42 +00:00
|
|
|
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
|
2012-12-21 18:36:41 +00:00
|
|
|
modify this GNU manual.''
|
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
|
2019-10-17 11:56:42 +00:00
|
|
|
@subtitle for Emacs
|
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
|
|
|
|
|
2021-12-05 21:46:58 +00:00
|
|
|
* Sample Session:: Example of connecting to the @samp{#emacs} channel
|
2007-09-06 05:07:05 +00:00
|
|
|
* 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
|
|
|
|
|
2021-12-05 18:21:05 +00:00
|
|
|
ERC is a powerful, modular, and extensible IRC client for Emacs.
|
|
|
|
It is distributed with Emacs since version 22.1.
|
|
|
|
|
2021-12-05 01:44:35 +00:00
|
|
|
IRC is short for Internet Relay Chat. When using IRC, you can
|
2021-12-05 18:21:05 +00:00
|
|
|
communicate with other users on the same IRC network. There are many
|
|
|
|
different networks---if you search for ``IRC networks'' in your
|
|
|
|
favorite search engine, you will find up-to-date lists of IRC networks
|
|
|
|
catering to various interests and topics.
|
|
|
|
|
|
|
|
To use IRC, you need an IRC client such as ERC. Using the client, you
|
|
|
|
connect to an IRC server. Once you've done that, you will have access
|
|
|
|
to all available channels on that server's network. A channel is
|
|
|
|
basically a chat room, and what you type in a channel will be shown to
|
|
|
|
all other users in that channel. You can be in several channels at
|
|
|
|
the same time---ERC will show each channel in its own buffer.
|
|
|
|
|
|
|
|
IRC channel names always begin with a @samp{#} character. For
|
|
|
|
example, the Emacs channel on Libera.Chat is @samp{#emacs}, and the
|
|
|
|
ERC channel is @samp{#erc}. Do not confuse them with the hashtags
|
2021-12-05 01:44:35 +00:00
|
|
|
used on many social media platforms.
|
|
|
|
|
2021-12-05 18:21:05 +00:00
|
|
|
You can also send private messages to other IRC users on the same
|
|
|
|
network, even if they are not in the same channels as you.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
2021-12-05 18:21:05 +00:00
|
|
|
ERC comes with the following capabilities enabled by default.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
@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
|
2021-12-05 01:44:35 +00:00
|
|
|
connect to. If you're unsure of which server or network to connect
|
2021-12-05 18:21:05 +00:00
|
|
|
to, we suggest starting with ``irc.libera.chat''. There you will find
|
|
|
|
the @samp{#emacs} channels where you can chat with other Emacs users,
|
|
|
|
and if you're having trouble with ERC, you can join the @samp{#erc}
|
|
|
|
channel and ask for help there.
|
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.
|
|
|
|
|
2018-02-26 12:53:37 +00:00
|
|
|
If you would rather use the Customize interface to change how ERC
|
|
|
|
works, do @kbd{M-x customize-group @key{RET} erc @key{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 @key{RET} erc-modules @key{RET}}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
@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
|
|
|
|
|
2021-07-04 03:39:18 +00:00
|
|
|
This is an example ERC session which shows how to connect to the
|
2021-12-05 21:46:58 +00:00
|
|
|
@samp{#emacs} channel on Libera.Chat. Another IRC channel on
|
|
|
|
Libera.Chat that may be of interest is @samp{#erc}, which is a channel
|
|
|
|
where ERC users and developers hang out. These channels used to live
|
|
|
|
on the Freenode IRC network until June 2021, when they---along with
|
|
|
|
the official IRC channels of the GNU Project, the Free Software
|
|
|
|
Foundation, and many other free software communities---relocated to
|
|
|
|
the Libera.Chat network in the aftermath of changes in governance and
|
|
|
|
policies of Freenode in May and June 2021. GNU and FSF's
|
|
|
|
announcements about this are at
|
2021-07-04 03:39:18 +00:00
|
|
|
@uref{https://lists.gnu.org/archive/html/info-gnu/2021-06/msg00005.html},
|
|
|
|
@uref{https://lists.gnu.org/archive/html/info-gnu/2021-06/msg00007.html},
|
|
|
|
and
|
|
|
|
@uref{https://lists.gnu.org/archive/html/info-gnu-emacs/2021-06/msg00000.html}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
@itemize @bullet
|
|
|
|
|
2021-07-04 03:39:18 +00:00
|
|
|
@item Connect to Libera.Chat
|
2007-09-06 05:07:05 +00:00
|
|
|
|
2021-12-05 21:46:58 +00:00
|
|
|
Run @kbd{M-x erc}. Use ``irc.libera.chat'' as the IRC server, ``6667''
|
2007-09-06 05:07:05 +00:00
|
|
|
as the port, and choose a nickname.
|
|
|
|
|
|
|
|
@item Get used to the interface
|
|
|
|
|
2021-07-04 03:39:18 +00:00
|
|
|
Switch to the ``irc.libera.chat:6667'' buffer, if you're not already
|
2007-09-06 05:07:05 +00:00
|
|
|
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
|
|
|
|
|
2014-06-08 06:57:15 +00:00
|
|
|
In that buffer, type ``/join @key{SPC} #emacs'' and hit @kbd{RET}. Depending
|
2007-09-06 05:07:05 +00:00
|
|
|
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.
|
|
|
|
|
2021-07-04 03:39:18 +00:00
|
|
|
@item Register your nickname with Libera.Chat
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
If you would like to be able to talk with people privately on the
|
2021-07-04 03:39:18 +00:00
|
|
|
Libera.Chat network, you will have to ``register'' your nickname.
|
|
|
|
To do so, switch to the ``irc.libera.chat:6667'' buffer and type
|
|
|
|
``/msg NickServ register <password>'', replacing ``<password>'' with
|
|
|
|
your desired password. It should tell you that the operation was
|
2020-10-31 18:07:11 +00:00
|
|
|
successful.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
@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.
|
|
|
|
|
2013-07-25 01:25:18 +00:00
|
|
|
multiple languages. Please contact the Emacs developers
|
|
|
|
if you are interested in helping with the
|
2007-09-06 05:07:05 +00:00
|
|
|
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
|
2021-12-05 21:46:58 +00:00
|
|
|
ERC buffer and run the @code{/RECONNECT} command.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
@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
|
|
|
|
|
2015-04-11 14:47:25 +00:00
|
|
|
@item C-a or <home> (@code{erc-bol})
|
2007-09-06 05:07:05 +00:00
|
|
|
Go to beginning of line or end of prompt.
|
|
|
|
|
2018-02-26 12:53:37 +00:00
|
|
|
@item @key{RET} (@code{erc-send-current-line})
|
2007-09-06 05:07:05 +00:00
|
|
|
Send the current line
|
|
|
|
|
2021-12-03 21:57:48 +00:00
|
|
|
@item @key{TAB} (@code{completion-at-point} or @code{erc-button-next})
|
2007-09-06 05:07:05 +00:00
|
|
|
If at prompt, complete the current word.
|
|
|
|
Otherwise, move to the next link or button.
|
|
|
|
|
2018-02-26 12:53:37 +00:00
|
|
|
@item M-@key{TAB} (@code{ispell-complete-word})
|
2007-09-06 05:07:05 +00:00
|
|
|
Complete the given word, using ispell.
|
|
|
|
|
2015-04-11 14:47:25 +00:00
|
|
|
@item C-c C-a (@code{erc-bol})
|
2007-09-06 05:07:05 +00:00
|
|
|
Go to beginning of line or end of prompt.
|
|
|
|
|
2020-11-09 14:34:08 +00:00
|
|
|
@item C-c C-b (@code{erc-switch-to-buffer})
|
|
|
|
Use @code{read-buffer} to prompt for a ERC buffer to switch to.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
2015-04-11 14:47:25 +00:00
|
|
|
@item C-c C-c (@code{erc-toggle-interpret-controls})
|
2007-09-06 05:07:05 +00:00
|
|
|
Toggle interpretation of control sequences in messages.
|
|
|
|
|
2015-04-11 14:47:25 +00:00
|
|
|
@item C-c C-d (@code{erc-input-action})
|
2007-09-06 05:07:05 +00:00
|
|
|
Interactively input a user action and send it to IRC.
|
|
|
|
|
2015-04-11 14:47:25 +00:00
|
|
|
@item C-c C-e (@code{erc-toggle-ctcp-autoresponse})
|
2007-09-06 05:07:05 +00:00
|
|
|
Toggle automatic CTCP replies (like VERSION and PING).
|
|
|
|
|
2015-04-11 14:47:25 +00:00
|
|
|
@item C-c C-f (@code{erc-toggle-flood-control})
|
2007-09-06 05:07:05 +00:00
|
|
|
Toggle use of flood control on sent messages.
|
|
|
|
|
2018-02-26 12:53:37 +00:00
|
|
|
@item C-c @key{TAB} (@code{erc-invite-only-mode})
|
2007-09-06 05:07:05 +00:00
|
|
|
Turn on the invite only mode (+i) for the current channel.
|
|
|
|
|
2015-04-11 14:47:25 +00:00
|
|
|
@item C-c C-j (@code{erc-join-channel})
|
2007-09-06 05:07:05 +00:00
|
|
|
Join channel. If point is at the beginning of a channel name, use that
|
|
|
|
as default.
|
|
|
|
|
2015-04-11 14:47:25 +00:00
|
|
|
@item C-c C-k (@code{erc-go-to-log-matches-buffer})
|
2007-09-06 05:07:05 +00:00
|
|
|
Interactively open an erc-log-matches buffer
|
|
|
|
|
2015-04-11 14:47:25 +00:00
|
|
|
@item C-c C-l (@code{erc-save-buffer-in-logs})
|
2007-09-06 05:07:05 +00:00
|
|
|
Append buffer contents to the log file, if logging is enabled.
|
|
|
|
|
2015-04-11 14:47:25 +00:00
|
|
|
@item C-c C-n (@code{erc-channel-names})
|
2007-09-06 05:07:05 +00:00
|
|
|
Run "/names #channel" in the current channel.
|
|
|
|
|
2015-04-11 14:47:25 +00:00
|
|
|
@item C-c C-o (@code{erc-get-channel-mode-from-keypress})
|
2007-09-06 05:07:05 +00:00
|
|
|
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.
|
2015-04-11 14:47:25 +00:00
|
|
|
Anything else will be sent to @code{erc-toggle-channel-mode}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
2015-04-11 14:47:25 +00:00
|
|
|
@item C-c C-p (@code{erc-part-from-channel})
|
2007-09-06 05:07:05 +00:00
|
|
|
Part from the current channel and prompt for a reason.
|
|
|
|
|
2015-04-11 14:47:25 +00:00
|
|
|
@item C-c C-q (@code{erc-quit-server})
|
2007-09-06 05:07:05 +00:00
|
|
|
Disconnect from current server after prompting for reason.
|
|
|
|
|
2015-04-11 14:47:25 +00:00
|
|
|
@item C-c C-r (@code{erc-remove-text-properties-region})
|
2007-09-06 05:07:05 +00:00
|
|
|
Clears the region (start,end) in object from all colors, etc.
|
|
|
|
|
2015-04-11 14:47:25 +00:00
|
|
|
@item C-c C-t (@code{erc-set-topic})
|
2007-09-06 05:07:05 +00:00
|
|
|
Prompt for a topic for the current channel.
|
|
|
|
|
2015-04-11 14:47:25 +00:00
|
|
|
@item C-c C-u (@code{erc-kill-input})
|
|
|
|
Kill current input line using @code{erc-bol} followed by @code{kill-line}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
@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
|
2018-02-26 12:53:37 +00:00
|
|
|
@kbd{M-x customize-option @key{RET} erc-modules @key{RET}}.
|
|
|
|
Alternatively, set @code{erc-modules} manually and then call
|
|
|
|
@code{erc-update-modules}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
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}
|
2021-06-18 11:25:44 +00:00
|
|
|
@item @var{user}
|
2007-09-06 05:07:05 +00:00
|
|
|
@item @var{password}
|
|
|
|
@item @var{full-name}
|
2021-06-18 11:25:44 +00:00
|
|
|
@item @var{id}
|
2007-09-06 05:07:05 +00:00
|
|
|
@end itemize
|
|
|
|
|
2021-06-18 11:25:44 +00:00
|
|
|
For example, calling the command like so
|
2007-09-06 05:07:05 +00:00
|
|
|
|
2021-06-18 11:25:44 +00:00
|
|
|
@example lisp
|
2021-07-04 03:39:18 +00:00
|
|
|
(erc :server "irc.libera.chat" :full-name "J. Random Hacker")
|
2007-09-06 05:07:05 +00:00
|
|
|
@end example
|
2021-06-18 11:25:44 +00:00
|
|
|
|
|
|
|
sets @var{server} and @var{full-name} directly while leaving the rest
|
|
|
|
up to functions like @code{erc-compute-port}. Note that some
|
|
|
|
arguments can't be specified interactively. @var{id}, in particular,
|
|
|
|
is rarely needed (@pxref{Network Identifier}).
|
|
|
|
|
2007-09-06 05:07:05 +00:00
|
|
|
@end defun
|
|
|
|
|
2021-06-18 11:25:44 +00:00
|
|
|
@noindent
|
2021-04-23 00:22:38 +00:00
|
|
|
To connect securely over an encrypted TLS connection, use @kbd{M-x
|
|
|
|
erc-tls}.
|
|
|
|
|
|
|
|
@defun erc-tls
|
|
|
|
Select connection parameters and run ERC over TLS@.
|
|
|
|
Non-interactively, it takes the following keyword arguments.
|
|
|
|
|
|
|
|
@itemize @bullet
|
|
|
|
@item @var{server}
|
|
|
|
@item @var{port}
|
|
|
|
@item @var{nick}
|
2021-06-18 11:25:44 +00:00
|
|
|
@item @var{user}
|
2021-04-23 00:22:38 +00:00
|
|
|
@item @var{password}
|
|
|
|
@item @var{full-name}
|
2021-06-18 11:25:44 +00:00
|
|
|
@item @var{id}
|
2021-04-23 00:22:38 +00:00
|
|
|
@item @var{client-certificate}
|
|
|
|
@end itemize
|
|
|
|
|
2021-06-18 11:25:44 +00:00
|
|
|
That is, if called in the following manner
|
2021-04-23 00:22:38 +00:00
|
|
|
|
2021-06-18 11:25:44 +00:00
|
|
|
@example lisp
|
2021-07-04 05:18:19 +00:00
|
|
|
(erc-tls :server "irc.libera.chat" :full-name "J. Random Hacker")
|
2021-04-23 00:22:38 +00:00
|
|
|
@end example
|
|
|
|
|
2021-06-18 11:25:44 +00:00
|
|
|
the command will set @var{server} and @var{full-name} accordingly,
|
|
|
|
while helpers, like @code{erc-compute-nick}, will determine other
|
|
|
|
parameters, and some, like @code{client-certificate}, will just be
|
|
|
|
@code{nil}.
|
|
|
|
|
2021-04-23 00:22:38 +00:00
|
|
|
To use a certificate with @code{erc-tls}, specify the optional
|
|
|
|
@var{client-certificate} keyword argument, whose value should be as
|
|
|
|
described in the documentation of @code{open-network-stream}: if
|
|
|
|
non-@code{nil}, it should either be a list where the first element is
|
|
|
|
the file name of the private key corresponding to a client certificate
|
|
|
|
and the second element is the file name of the client certificate
|
|
|
|
itself to use when connecting over TLS, or @code{t}, which means that
|
|
|
|
@code{auth-source} will be queried for the private key and the
|
|
|
|
certificate. Authenticating using a TLS client certificate is also
|
2021-05-11 07:27:14 +00:00
|
|
|
referred to as ``CertFP'' (Certificate Fingerprint) authentication by
|
2021-04-23 00:22:38 +00:00
|
|
|
various IRC networks.
|
|
|
|
|
|
|
|
Examples of use:
|
|
|
|
|
|
|
|
@example
|
2021-07-04 05:18:19 +00:00
|
|
|
(erc-tls :server "irc.libera.chat" :port 6697
|
2021-04-23 00:22:38 +00:00
|
|
|
:client-certificate
|
|
|
|
'("/home/bandali/my-cert.key"
|
|
|
|
"/home/bandali/my-cert.crt"))
|
|
|
|
@end example
|
|
|
|
|
|
|
|
@example
|
2021-07-04 05:18:19 +00:00
|
|
|
(erc-tls :server "irc.libera.chat" :port 6697
|
2021-04-23 00:22:38 +00:00
|
|
|
:client-certificate
|
2021-07-04 05:18:19 +00:00
|
|
|
`(,(expand-file-name "~/cert-libera.key")
|
|
|
|
,(expand-file-name "~/cert-libera.crt")))
|
2021-04-23 00:22:38 +00:00
|
|
|
@end example
|
|
|
|
|
|
|
|
@example
|
2021-07-04 05:18:19 +00:00
|
|
|
(erc-tls :server "irc.libera.chat" :port 6697
|
2021-04-23 00:22:38 +00:00
|
|
|
:client-certificate t)
|
|
|
|
@end example
|
|
|
|
|
|
|
|
In the case of @code{:client-certificate t}, you will need to add a
|
|
|
|
line like the following to your authinfo file
|
|
|
|
(e.g. @file{~/.authinfo.gpg}):
|
|
|
|
|
|
|
|
@example
|
2021-07-04 05:18:19 +00:00
|
|
|
machine irc.libera.chat key /home/bandali/my-cert.key cert /home/bandali/my-cert.crt
|
2021-04-23 00:22:38 +00:00
|
|
|
@end example
|
2021-05-11 01:32:42 +00:00
|
|
|
|
2021-05-11 01:55:19 +00:00
|
|
|
@xref{Help for users,,,auth, Emacs auth-source Library}, for more on the
|
2021-05-11 01:32:42 +00:00
|
|
|
@file{.authinfo}/@file{.netrc} backend of @code{auth-source}.
|
2021-04-23 00:22:38 +00:00
|
|
|
@end defun
|
|
|
|
|
2007-09-06 05:07:05 +00:00
|
|
|
@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
|
|
|
|
|
2014-10-03 12:13:31 +00:00
|
|
|
@defopt erc-format-nick-function
|
|
|
|
A function to format a nickname for message display
|
|
|
|
|
2014-10-03 13:02:53 +00:00
|
|
|
You can set this to @code{erc-format-@@nick} to display user mode prefix
|
2014-10-03 12:13:31 +00:00
|
|
|
@end defopt
|
|
|
|
|
|
|
|
@example
|
|
|
|
(setq erc-format-nick-function 'erc-format-@@nick)
|
|
|
|
@end example
|
|
|
|
|
2007-09-06 05:07:05 +00:00
|
|
|
@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
|
|
|
|
|
2021-06-18 11:25:44 +00:00
|
|
|
@subheading User
|
|
|
|
@defun erc-compute-user &optional user
|
|
|
|
Determine a suitable value to send for the first argument to the
|
|
|
|
opening @samp{USER} IRC command by consulting the following sources:
|
|
|
|
|
|
|
|
@itemize
|
|
|
|
@item @var{user}, the argument passed to this function
|
|
|
|
@item The option @code{erc-email-userid}, assuming @code{erc-anonymous-login}
|
|
|
|
is non-@code{nil}
|
|
|
|
@item The result of calling the function @code{user-login-name}
|
|
|
|
@end itemize
|
|
|
|
|
|
|
|
@end defun
|
|
|
|
|
|
|
|
@defopt erc-email-userid
|
|
|
|
A permanent username value to send for all connections. It should be
|
|
|
|
a string abiding by the rules of the network.
|
|
|
|
@end defopt
|
|
|
|
|
2012-11-13 08:05:42 +00:00
|
|
|
@subheading Password
|
|
|
|
@cindex password
|
|
|
|
|
|
|
|
@defopt erc-prompt-for-password
|
2021-06-18 11:25:44 +00:00
|
|
|
If non-@code{nil} (the default), @kbd{M-x erc} prompts for a server
|
|
|
|
password. This only affects interactive invocations of @code{erc} and
|
|
|
|
@code{erc-tls}.
|
2012-11-13 08:05:42 +00:00
|
|
|
@end defopt
|
|
|
|
|
2021-06-18 11:25:44 +00:00
|
|
|
@noindent
|
2012-11-13 08:05:42 +00:00
|
|
|
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
|
2021-06-18 11:25:44 +00:00
|
|
|
the option @code{auth-sources} contains @file{~/.authinfo}, put
|
2012-11-13 08:05:42 +00:00
|
|
|
something like the following in that file:
|
|
|
|
|
|
|
|
@example
|
2021-06-18 11:25:44 +00:00
|
|
|
machine irc.example.net login mynick password sEcReT
|
|
|
|
@end example
|
|
|
|
|
|
|
|
@noindent
|
|
|
|
For server passwords, that is, passwords sent for the IRC @samp{PASS}
|
|
|
|
command, the @samp{host} field, here @code{machine irc.example.net},
|
|
|
|
corresponds to the @var{server} parameter used by @code{erc} and
|
|
|
|
@code{erc-tls}. Unfortunately, specifying a network, like
|
|
|
|
@samp{Libera.Chat}, or a specific network server, like
|
|
|
|
@samp{platinum.libera.chat}, won't work OOTB for looking up a server
|
|
|
|
password because such information isn't available during opening
|
|
|
|
introductions. Actually, ERC @emph{can} find entries with arbitrary
|
|
|
|
@samp{host} values for any context, including server passwords, but
|
|
|
|
that requires messing with the more advanced options below.
|
|
|
|
|
|
|
|
If ERC can't find a suitable server password, it'll just skip the IRC
|
|
|
|
@samp{PASS} command altogether, something users may want when using
|
|
|
|
CertFP or engaging NickServ via ERC's ``services'' module. If that
|
|
|
|
sounds like you, you can also set the option
|
|
|
|
@code{erc-auth-source-server-function} to @code{nil} to skip
|
|
|
|
server-passwork lookup for all servers. Note that some networks and
|
|
|
|
IRCds may accept account-services authentication via server password
|
|
|
|
using the nonstandard ``mynick:sEcReT'' convention.
|
|
|
|
|
|
|
|
As just mentioned, you can also use @code{auth-source} to authenticate
|
|
|
|
to account services the traditional way, through a bot called
|
|
|
|
``NickServ''. To tell ERC to do that, set
|
|
|
|
@code{erc-use-auth-source-for-nickserv-password} to @code{t}. For
|
|
|
|
these and most other queries, entries featuring custom identifiers and
|
|
|
|
networks are matched first, followed by network-specific servers and
|
|
|
|
dialed endpoints (typically, the @var{SERVER} passed to
|
|
|
|
@code{erc}). The following netrc-style entries appear in order of
|
|
|
|
precedence:
|
|
|
|
|
|
|
|
@example
|
|
|
|
machine Libera/cellphone login MyNick password sEcReT
|
|
|
|
machine Libera.Chat login MyNick password sEcReT
|
|
|
|
machine zirconium.libera.chat login MyNick password sEcReT
|
|
|
|
machine irc.libera.chat login MyNick password sEcReT
|
2012-11-13 08:05:42 +00:00
|
|
|
@end example
|
|
|
|
|
|
|
|
@noindent
|
2021-06-18 11:25:44 +00:00
|
|
|
Remember that field labels vary per backend, so @samp{machine} (in
|
|
|
|
netrc's case) maps to auth-source's generalized notion of a host,
|
|
|
|
hence the @samp{:host} keyword property. Also, be sure and mind the
|
|
|
|
syntax of your chosen backend medium. For example, always quote
|
|
|
|
channel names in a netrc file.
|
|
|
|
|
|
|
|
If this all seems overly nuanced or just plain doesn't appeal to you,
|
|
|
|
see options @code{erc-auth-source-services-function} and friends just
|
|
|
|
below. These let you query auth-source your way. Most users can
|
|
|
|
simply ignore the passed-in arguments and get by with something like
|
|
|
|
the following:
|
2012-11-13 08:05:42 +00:00
|
|
|
|
2021-06-18 11:25:44 +00:00
|
|
|
@lisp
|
|
|
|
(defun my-fancy-auth-source-func (&rest _)
|
|
|
|
(let* ((host (read-string "host: " nil nil "default"))
|
|
|
|
(pass (auth-source-pick-first-password :host host)))
|
|
|
|
(if (and pass (string-search "libera" host))
|
|
|
|
(concat "MyNick:" pass)
|
|
|
|
pass)))
|
|
|
|
@end lisp
|
|
|
|
|
|
|
|
Lastly, ERC also consults @code{auth-source} to find ``keys'' that may
|
|
|
|
be required by certain channels you join. When modifying a
|
|
|
|
traditional @code{auth-source} entry for this purpose, put the channel
|
|
|
|
name in the @samp{user} field (for example, @samp{login "#fsf"}, in
|
|
|
|
netrc's case). The actual key goes in the @samp{password} (or
|
|
|
|
@samp{secret}) field.
|
|
|
|
|
|
|
|
@noindent
|
|
|
|
For details, @pxref{Top,,auth-source, auth, Emacs auth-source Library}.
|
2012-11-13 08:05:42 +00:00
|
|
|
|
2021-06-18 11:25:44 +00:00
|
|
|
@defopt erc-auth-source-server-function
|
|
|
|
@end defopt
|
|
|
|
@defopt erc-auth-source-services-function
|
|
|
|
@end defopt
|
|
|
|
@defopt erc-auth-source-join-function
|
|
|
|
|
|
|
|
ERC calls these functions with keyword arguments recognized by
|
|
|
|
@code{auth-source-search}, namely, those deemed most relevant to the
|
|
|
|
current context, if any. For example, with NickServ queries,
|
|
|
|
@code{:user} is the ``desired'' nickname rather than the current one.
|
|
|
|
Generalized names, like @code{:user} and @code{:host}, are always used
|
|
|
|
over back-end specific ones, like @code{:login} or @code{:machine}.
|
|
|
|
ERC expects a string to use as the secret or nil, if the search fails.
|
|
|
|
|
|
|
|
The default value for all three options is the function
|
|
|
|
@code{erc-auth-source-search}. It tries to merge relevant contextual
|
|
|
|
params with those provided or discovered from the logical connection
|
|
|
|
or the underlying transport. Some auth-source back ends may not be
|
|
|
|
compatible; netrc, plstore, json, and secrets are currently supported.
|
|
|
|
@end defopt
|
2012-11-13 08:05:42 +00:00
|
|
|
|
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
|
|
|
|
|
2021-06-18 11:25:44 +00:00
|
|
|
|
|
|
|
@subheading ID
|
|
|
|
@anchor{Network Identifier}
|
|
|
|
|
|
|
|
ERC uses an abstract designation called a @dfn{network context
|
|
|
|
identifier} for referring to a connection internally. While normally
|
|
|
|
derived from a combination of logical and physical connection
|
|
|
|
parameters, an ID can also be explicitly provided via an entry-point
|
|
|
|
command (like @code{erc-tls}). Use this in rare situations where ERC
|
|
|
|
would otherwise have trouble discerning between connections.
|
|
|
|
|
|
|
|
One such situation might arise when using multiple connections to the
|
|
|
|
same network with the same nick but different (nonstandard) "device"
|
|
|
|
identifiers, which some bouncers may support. Another might be when
|
|
|
|
mimicking the experience offered by popular standalone clients, which
|
|
|
|
normally offer ``named'' persistent configurations with server buffers
|
|
|
|
reflecting those names. Yet another use case might involve
|
|
|
|
third-party code needing to identify a connection unequivocally but in
|
|
|
|
a human-friendly way suitable for UI components.
|
|
|
|
|
|
|
|
When providing an ID as an entry-point argument, strings and symbols
|
|
|
|
make the most sense, but any reasonably printable object is
|
|
|
|
acceptable.
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
;; 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 "]"))))
|
|
|
|
|
2021-07-04 03:39:18 +00:00
|
|
|
;; This causes ERC to connect to the Libera.Chat network upon hitting
|
2007-09-06 05:07:05 +00:00
|
|
|
;; C-c e f. Replace MYNICK with your IRC nick.
|
|
|
|
(global-set-key "\C-cef" (lambda () (interactive)
|
2021-07-04 03:39:18 +00:00
|
|
|
(erc :server "irc.libera.chat" :port "6667"
|
2007-09-06 05:07:05 +00:00
|
|
|
: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
|
2019-09-23 06:53:39 +00:00
|
|
|
;; nick. Often, people like to run bitlbee (https://bitlbee.org/) as an
|
2007-09-06 05:07:05 +00:00
|
|
|
;; 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
|
|
|
|
|
2021-07-04 03:39:18 +00:00
|
|
|
;; Join the #emacs and #erc channels whenever connecting to
|
|
|
|
;; Libera.Chat.
|
|
|
|
(setq erc-autojoin-channels-alist
|
|
|
|
'(("Libera.Chat" "#emacs" "#erc")))
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
;; 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
|
2018-02-26 12:53:37 +00:00
|
|
|
@kbd{M-x customize-group @key{RET} erc @key{RET}}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
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
|
|
|
|
|
2015-05-21 19:30:18 +00:00
|
|
|
@defopt erc-network-hide-list
|
|
|
|
If non, @code{nil}, this is a list of IRC networks and message types
|
|
|
|
to hide, e.g.:
|
|
|
|
|
|
|
|
@example
|
2021-07-04 03:39:18 +00:00
|
|
|
(setq erc-network-hide-list (("Libera.Chat" "JOIN" "PART" "QUIT")
|
2015-05-21 19:30:18 +00:00
|
|
|
("OFTC" "JOIN" "PART""))
|
|
|
|
@end example
|
|
|
|
@end defopt
|
|
|
|
|
|
|
|
@defopt erc-channel-hide-list
|
|
|
|
If non, @code{nil}, this is a list of IRC channels and message types
|
|
|
|
to hide, e.g.:
|
|
|
|
|
|
|
|
@example
|
|
|
|
(setq erc-channel-hide-list (("#erc" "JOIN" "PART" "QUIT")
|
|
|
|
("#emacs" "NICK"))
|
|
|
|
@end example
|
|
|
|
@end defopt
|
|
|
|
|
2012-11-13 08:14:15 +00:00
|
|
|
@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
|
2012-12-07 02:37:20 +00:00
|
|
|
nickname is considered a lurker.
|
2012-11-13 08:14:15 +00:00
|
|
|
@end defopt
|
|
|
|
|
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
|
2019-09-23 06:53:39 +00:00
|
|
|
@uref{https://www.emacswiki.org/emacs/ERC} is the
|
2015-03-17 23:55:02 +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,
|
2017-10-02 02:53:56 +00:00
|
|
|
@uref{https://lists.gnu.org/mailman/listinfo/help-gnu-emacs}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
@item
|
2021-07-04 03:39:18 +00:00
|
|
|
You can visit the IRC Libera.Chat channel @samp{#emacs}. Many of the
|
2007-09-06 05:07:05 +00:00
|
|
|
contributors are frequently around and willing to answer your
|
|
|
|
questions.
|
|
|
|
|
2012-10-06 01:42:02 +00:00
|
|
|
@item
|
2021-06-18 11:25:44 +00:00
|
|
|
To report a bug in ERC, use @kbd{M-x erc-bug}.
|
2012-10-06 01:42:02 +00:00
|
|
|
|
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
|
|
|
|
|
2013-07-25 01:25:18 +00:00
|
|
|
@c abel@@bfr.co.il, sergey.berezin@@cs.cmu.edu
|
|
|
|
ERC was originally written by Alexander L. Belikoff and Sergey Berezin.
|
|
|
|
They stopped development around
|
2007-09-06 05:07:05 +00:00
|
|
|
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
|
|
|
|
|
2013-07-25 01:25:18 +00:00
|
|
|
@c mlang@@delysid.org, alex@@gnu.org
|
|
|
|
In June 2001, Mario Lang and Alex Schroeder
|
|
|
|
took over development and created a ERC Project at
|
2019-09-23 06:53:39 +00:00
|
|
|
@uref{https://sourceforge.net/projects/erc}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
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.
|
|
|
|
|
2021-12-05 21:46:58 +00:00
|
|
|
Most of the development of the new ERC happened on @samp{#emacs} on
|
2007-09-06 05:07:05 +00:00
|
|
|
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
|
|
|
|
|
2013-07-25 01:25:18 +00:00
|
|
|
@c mwolson@@gnu.org
|
|
|
|
ERC 5.0 was released. Michael Olson became
|
2007-09-06 05:07:05 +00:00
|
|
|
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
|
2017-09-13 22:52:52 +00:00
|
|
|
@uref{https://sv.gnu.org/projects/erc}. We switched to using GNU Arch as
|
2007-09-06 05:07:05 +00:00
|
|
|
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
|