Mercurial > emacs
annotate doc/misc/erc.texi @ 95948:d55ec23f052d
*** empty log message ***
| author | Glenn Morris <rgm@gnu.org> |
|---|---|
| date | Sun, 15 Jun 2008 02:53:17 +0000 |
| parents | 6f0fce2c3559 |
| children | 0080e1e64a78 |
| rev | line source |
|---|---|
| 84293 | 1 \input texinfo |
| 2 @c %**start of header | |
|
84329
3d431f1997d8
(setfilename): Go up one more level to ../../info.
Glenn Morris <rgm@gnu.org>
parents:
84293
diff
changeset
|
3 @setfilename ../../info/erc |
| 84293 | 4 @settitle ERC Manual |
| 5 @c %**end of header | |
| 6 | |
| 7 @dircategory Emacs | |
| 8 @direntry | |
| 9 * ERC: (erc). Powerful, modular, and extensible IRC client for Emacs. | |
| 10 @end direntry | |
| 11 | |
| 12 @syncodeindex fn cp | |
| 13 | |
| 14 @copying | |
| 88015 | 15 This manual is for ERC version 5.3. |
| 84293 | 16 |
| 87903 | 17 Copyright @copyright{} 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
| 84293 | 18 |
| 19 @quotation | |
| 20 Permission is granted to copy, distribute and/or modify this document | |
| 21 under the terms of the GNU Free Documentation License, Version 1.2 or | |
| 22 any later version published by the Free Software Foundation; with no | |
| 23 Invariant Sections, Front-Cover texts, or Back-Cover Texts. A copy of | |
|
95937
6f0fce2c3559
Remove references to external license, since doclicense is included.
Glenn Morris <rgm@gnu.org>
parents:
88015
diff
changeset
|
24 the license is included in the section entitled ``GNU Free Documentation |
|
6f0fce2c3559
Remove references to external license, since doclicense is included.
Glenn Morris <rgm@gnu.org>
parents:
88015
diff
changeset
|
25 License''. |
| 84293 | 26 |
| 27 All Emacs Lisp code contained in this document may be used, distributed, | |
| 28 and modified without restriction. | |
| 29 @end quotation | |
| 30 @end copying | |
| 31 | |
| 32 @titlepage | |
| 33 @title ERC manual | |
| 34 @subtitle a full-featured IRC client | |
| 35 @subtitle for GNU Emacs and XEmacs | |
| 36 | |
| 37 @c The following two commands | |
| 38 @c start the copyright page. | |
| 39 @page | |
| 40 @vskip 0pt plus 1filll | |
| 41 @insertcopying | |
| 42 @end titlepage | |
| 43 | |
| 44 @c So the toc is printed at the start | |
| 45 @contents | |
| 46 | |
| 47 @ifnottex | |
| 48 @node Top, Introduction, (dir), (dir) | |
| 49 @comment node-name, next, previous, up | |
| 50 @top ERC | |
| 51 | |
| 52 @insertcopying | |
| 53 @end ifnottex | |
| 54 | |
| 55 @menu | |
| 56 * Introduction:: What is ERC? | |
| 57 * Obtaining ERC:: How to get ERC releases and development | |
| 58 versions. | |
| 59 * Installation:: Compiling and installing ERC. | |
| 60 * Getting Started:: Quick Start guide to using ERC. | |
| 61 * Keystroke Summary:: Keystrokes used in ERC buffers. | |
| 62 * Modules:: Available modules for ERC. | |
| 63 * Advanced Usage:: Cool ways of using ERC. | |
| 64 * Getting Help and Reporting Bugs:: | |
| 65 * History:: The history of ERC. | |
|
84387
4ee03308c9b6
Sync ERC 5.3 (devel) from upstream
Michael Olson <mwolson@gnu.org>
parents:
84329
diff
changeset
|
66 * Copying:: The GNU General Public License gives you |
|
4ee03308c9b6
Sync ERC 5.3 (devel) from upstream
Michael Olson <mwolson@gnu.org>
parents:
84329
diff
changeset
|
67 permission to redistribute ERC on |
|
4ee03308c9b6
Sync ERC 5.3 (devel) from upstream
Michael Olson <mwolson@gnu.org>
parents:
84329
diff
changeset
|
68 certain terms; it also explains that |
|
4ee03308c9b6
Sync ERC 5.3 (devel) from upstream
Michael Olson <mwolson@gnu.org>
parents:
84329
diff
changeset
|
69 there is no warranty. |
| 88015 | 70 * GNU Free Documentation License:: The license for this documentation. |
| 84293 | 71 * Concept Index:: Search for terms. |
| 72 | |
| 73 @detailmenu | |
| 74 --- The Detailed Node Listing --- | |
| 75 | |
| 76 Obtaining ERC | |
| 77 | |
| 78 * Releases:: Released versions of ERC. | |
| 79 * Development:: Latest unreleased development changes. | |
| 80 | |
| 81 Getting Started | |
| 82 | |
| 83 * Sample Session:: Example of connecting to the #emacs channel | |
| 84 * Special Features:: Differences from standalone IRC clients | |
| 85 | |
| 86 Advanced Usage | |
| 87 | |
| 88 * Connecting:: Ways of connecting to an IRC server. | |
| 89 * Sample Configuration:: An example configuration file. | |
| 90 * Options:: Options that are available for ERC. | |
| 91 | |
| 92 @end detailmenu | |
| 93 @end menu | |
| 94 | |
| 95 @node Introduction, Obtaining ERC, Top, Top | |
| 96 @comment node-name, next, previous, up | |
| 97 @chapter Introduction | |
| 98 | |
| 99 ERC is a powerful, modular, and extensible IRC client for Emacs. | |
| 100 | |
| 101 It comes with the following capabilities enabled by default. | |
| 102 | |
| 103 @itemize @bullet | |
| 104 @item Flood control | |
| 105 @item Timestamps | |
| 106 @item Join channels automatically | |
| 107 @item Buttonize URLs, nicknames, and other text | |
| 108 @item Wrap long lines | |
| 109 @item Highlight or remove IRC control characters | |
| 110 @item Highlight pals, fools, and other keywords | |
| 111 @item Detect netsplits | |
| 112 @item Complete nicknames and commands in a programmable fashion | |
| 113 @item Make displayed lines read-only | |
| 114 @item Input history | |
| 115 @item Track channel activity in the mode-line | |
| 116 | |
| 117 @end itemize | |
| 118 | |
| 119 @node Obtaining ERC, Installation, Introduction, Top | |
| 120 @comment node-name, next, previous, up | |
| 121 @chapter Obtaining ERC | |
| 122 | |
| 123 @menu | |
| 124 * Releases:: Released versions of ERC. | |
| 125 * Development:: Latest unreleased development changes. | |
| 126 @end menu | |
| 127 | |
| 128 Note that some ERC files are not included with Emacs due to copyright or | |
| 129 dependency issues. If desired, they may be found at the following | |
| 130 locations, or from your local GNU mirror. | |
| 131 | |
| 132 @itemize @bullet | |
| 88015 | 133 @item @uref{http://ftp.gnu.org/gnu/erc/erc-5.3-extras.tar.gz} |
| 134 @item @uref{http://ftp.gnu.org/gnu/erc/erc-5.3-extras.zip} | |
| 84293 | 135 @end itemize |
| 136 | |
| 137 The rest of this chapter may be skipped if you are using the version of | |
| 138 ERC that comes with Emacs. | |
| 139 | |
| 140 @node Releases, Development, Obtaining ERC, Obtaining ERC | |
| 141 @comment node-name, next, previous, up | |
| 142 @section Releases | |
| 143 | |
| 144 Choose to install a release if you want to minimize risk. | |
| 145 | |
| 146 Errors are corrected in development first. User-visible changes will be | |
| 147 announced on the @email{erc-discuss@@gnu.org} mailing list. | |
| 148 @pxref{Getting Help and Reporting Bugs}. | |
| 149 | |
| 150 @cindex releases, Debian package | |
| 151 @cindex Debian package for ERC | |
| 152 Debian users can get ERC via apt-get. The @file{erc} package is | |
| 153 available in the official Debian repository. | |
| 154 | |
| 155 @cindex releases, from source | |
| 156 Alternatively, you can download the latest release from | |
| 157 @uref{http://ftp.gnu.org/gnu/erc}, or your local GNU mirror. | |
| 158 | |
| 159 @node Development, , Releases, Obtaining ERC | |
| 160 @comment node-name, next, previous, up | |
| 161 @section Development | |
| 162 @cindex development | |
| 163 | |
| 164 Choose the development version if you want to live on the bleeding edge | |
| 165 of ERC development or try out new features before release. | |
| 166 | |
| 88015 | 167 @cindex git version control system, using |
| 168 The git version control system allows you to keep up-to-date with the | |
| 169 latest changes to the development version of ERC. It also allows you | |
| 170 to contribute changes (via commits, if you are have developer access to | |
| 171 the repository, or via patches, otherwise). If you would like to | |
| 172 contribute to ERC development, it is highly recommended that you use | |
| 173 git. | |
| 84293 | 174 |
| 88015 | 175 If you are new to git, you might find this tutorial helpful: |
| 176 @uref{http://www.kernel.org/pub/software/scm/git/docs/tutorial.html}. | |
| 177 | |
| 178 Downloading ERC with git and staying up-to-date involves the following | |
| 179 steps. | |
| 84293 | 180 |
| 181 @enumerate | |
| 88015 | 182 @item Install git. |
| 84293 | 183 |
| 184 @itemize @bullet | |
| 88015 | 185 @item Debian and Ubuntu: @kbd{apt-get install git-core}. |
| 186 @item Windows: @uref{http://git.or.cz/gitwiki/WindowsInstall}. | |
| 187 @item Other operating systems: download, compile, and install the source | |
| 188 from @uref{http://www.kernel.org/pub/software/scm/git/}, or find a git | |
| 189 package for your operating system. | |
| 84293 | 190 @end itemize |
| 191 | |
| 88015 | 192 @item Download the ERC development branch. |
| 193 | |
| 194 If you have developer access to ERC, do: | |
| 195 | |
| 84293 | 196 @example |
| 88015 | 197 git clone ssh://loginname@@git.sv.gnu.org/srv/git/erc.git |
| 84293 | 198 @end example |
| 199 | |
| 88015 | 200 otherwise, do: |
| 201 | |
| 84293 | 202 @example |
| 88015 | 203 git clone git://git.sv.gnu.org/erc.git |
| 204 @end example | |
| 205 | |
| 206 If you are behind a restrictive firewall, and do not have developer | |
| 207 access, then do the following instead: | |
| 208 | |
| 209 @example | |
| 210 git clone http://git.sv.gnu.org/r/erc.git | |
| 84293 | 211 @end example |
| 212 | |
| 213 @item List upstream changes that are missing from your local copy. | |
| 214 Do this whenever you want to see whether new changes have been committed | |
| 88015 | 215 to ERC. If you wish, you may skip this step and proceed directly to |
| 216 the ``update'' step. | |
| 84293 | 217 |
| 218 @example | |
| 219 # Change to the source directory you are interested in. | |
| 88015 | 220 cd erc |
| 84293 | 221 |
| 88015 | 222 # Fetch new changes from the repository, but don't apply them yet |
| 223 git fetch origin | |
| 224 | |
| 225 # Display log messages for the new changes | |
| 226 git log HEAD..origin | |
| 84293 | 227 @end example |
| 228 | |
| 88015 | 229 ``origin'' is git's name for the location where you originally got ERC |
| 230 from. You can change this location at any time by editing the | |
| 231 @file{.git/config} file in the directory where the ERC source was | |
| 232 placed. | |
| 233 | |
| 234 @cindex updating ERC with git | |
| 235 @item Update to the latest version by pulling in any missing changes. | |
| 236 | |
| 84293 | 237 @example |
| 238 cd erc | |
| 88015 | 239 git pull origin |
| 84293 | 240 @end example |
| 241 | |
| 88015 | 242 git will show how many files changed, and will provide a visual display |
| 243 for how many lines were changed in each file. | |
| 244 | |
| 84293 | 245 @end enumerate |
| 246 | |
| 88015 | 247 There are other ways to interact with the ERC repository. |
| 84293 | 248 |
| 88015 | 249 @itemize |
| 250 @item Browse git repo: @uref{http://git.sv.gnu.org/gitweb/?p=erc.git} | |
| 251 @item Latest development snapshot: @uref{http://mwolson.org/static/dist/erc-latest.tar.gz} | |
| 252 @item Latest development snapshot (zip file): @uref{http://mwolson.org/static/dist/erc-latest.zip} | |
| 253 @end itemize | |
| 84293 | 254 |
| 88015 | 255 The latest development snapshot can lag behind the git repo by as much |
| 256 as 20 minutes, but never more than that. | |
| 257 | |
| 258 For further information on committing changes to ERC and performing | |
| 259 development, please consult | |
| 260 @uref{http://emacswiki.org/cgi-bin/wiki/ErcDevelopment}. | |
| 84293 | 261 |
| 262 | |
| 263 @node Installation, Getting Started, Obtaining ERC, Top | |
| 264 @comment node-name, next, previous, up | |
| 265 @chapter Installation | |
| 266 | |
| 267 ERC may be compiled and installed on your machine. | |
| 268 | |
| 269 This section may be skipped if you are using the version of ERC that | |
| 270 comes with Emacs. | |
| 271 | |
| 272 @subsubheading Compilation | |
| 273 | |
| 274 This is an optional step, since Emacs Lisp source code does not | |
| 275 necessarily have to be byte-compiled. It will yield a speed increase, | |
| 276 though. | |
| 277 | |
| 278 A working copy of Emacs or XEmacs is needed in order to compile ERC. By | |
| 279 default, the program that is installed with the name @command{emacs} | |
| 280 will be used. | |
| 281 | |
| 282 If you want to use the @command{xemacs} binary to perform the | |
| 283 compilation, you would need to edit @file{Makefile} in the top-level | |
| 284 directory as follows. You can put either a full path to an Emacs or | |
| 285 XEmacs binary or just the command name, as long as it is in the | |
| 286 @env{PATH}. | |
| 287 | |
| 288 @example | |
| 289 EMACS = xemacs | |
| 290 SITEFLAG = -no-site-file | |
| 291 @end example | |
| 292 | |
| 293 Running @code{make} should compile the ERC source files in the | |
| 294 @file{lisp} directory. | |
| 295 | |
| 296 @subsubheading Installation | |
| 297 | |
| 298 ERC may be installed into your file hierarchy by doing the following. | |
| 299 | |
| 300 Edit the @file{Makefile} file so that @env{ELISPDIR} points to where you | |
| 301 want the source and compiled ERC files to be installed and | |
| 302 @env{INFODIR} indicates where to put the ERC manual. Of course, you | |
| 303 will want to edit @env{EMACS} and @env{SITEFLAG} as shown in the | |
| 304 Compilation section if you are using XEmacs. | |
| 305 | |
| 306 If you are installing ERC on a Debian system, you might want to change | |
| 307 the value of @env{INSTALLINFO} as specified in @file{Makefile}. | |
| 308 | |
| 309 Run @code{make} as a normal user. | |
| 310 | |
| 311 Run @code{make install} as the root user if you have chosen installation | |
| 312 locations that require this. | |
| 313 | |
| 314 | |
| 315 @node Getting Started, Keystroke Summary, Installation, Top | |
| 316 @comment node-name, next, previous, up | |
| 317 @chapter Getting Started | |
| 318 @cindex settings | |
| 319 | |
| 320 To use ERC, add the directory containing its files to your | |
| 321 @code{load-path} variable, in your @file{.emacs} file. Then, load ERC | |
| 322 itself. An example follows. | |
| 323 | |
| 324 @lisp | |
| 325 (require 'erc) | |
| 326 @end lisp | |
| 327 | |
| 328 Once ERC is loaded, the command @kbd{M-x erc} will start ERC and | |
| 329 prompt for the server to connect to. | |
| 330 | |
| 331 If you want to place ERC settings in their own file, you can place them | |
| 332 in @file{~/.emacs.d/.ercrc.el}, creating it if necessary. | |
| 333 | |
| 334 If you would rather use the Customize interface to change how ERC works, | |
| 335 do @kbd{M-x customize-group RET erc RET}. In particular, ERC comes with | |
| 336 lots of modules that may be enabled or disabled; to select which ones | |
| 337 you want, do @kbd{M-x customize-variable RET erc-modules RET}. | |
| 338 | |
| 339 @menu | |
| 340 * Sample Session:: Example of connecting to the #emacs channel | |
| 341 * Special Features:: Differences from standalone IRC clients | |
| 342 @end menu | |
| 343 | |
| 344 @node Sample Session, Special Features, Getting Started, Getting Started | |
| 345 @comment node-name, next, previous, up | |
| 346 @section Sample Session | |
| 347 | |
| 348 This is an example ERC session which shows how to connect to the #emacs | |
| 349 channel on Freenode. Another IRC channel on Freenode that may be of | |
| 350 interest is #erc, which is a channel where ERC users and developers hang | |
| 351 out. | |
| 352 | |
| 353 @itemize @bullet | |
| 354 | |
| 355 @item Connect to Freenode | |
| 356 | |
| 357 Run @kbd{M-x erc}. Use ``irc.freenode.net'' as the IRC server, ``6667'' | |
| 358 as the port, and choose a nickname. | |
| 359 | |
| 360 @item Get used to the interface | |
| 361 | |
| 362 Switch to the ``irc.freenode.net:6667'' buffer, if you're not already | |
| 363 there. You will see first some messages about checking for ident, and | |
| 364 then a bunch of other messages that describe the current IRC server. | |
| 365 | |
| 366 @item Join the #emacs channel | |
| 367 | |
| 368 In that buffer, type ``/join SPC #emacs'' and hit @kbd{RET}. Depending | |
| 369 on how you've set up ERC, either a new buffer for ``#emacs'' will be | |
| 370 displayed, or a new buffer called ``#emacs'' will be created in the | |
| 371 background. If the latter, switch to the ``#emacs'' buffer. You will | |
| 372 see the channel topic and a list of the people who are currently on the | |
| 373 channel. | |
| 374 | |
| 375 @item Register your nickname with Freenode | |
| 376 | |
| 377 If you would like to be able to talk with people privately on the | |
| 378 Freenode network, you will have to ``register'' your nickname. To do | |
| 379 so, switch to the ``irc.freenode.net:6667'' buffer and type ``/msg | |
| 380 NickServ register <password>'', replacing ``<password>'' with your | |
| 381 desired password. It should tell you that the operation was successful. | |
| 382 | |
| 383 @item Talk to people in the channel | |
| 384 | |
| 385 If you switch back to the ``#emacs'' buffer, you can type a message, and | |
| 386 everyone on the channel will see it. | |
| 387 | |
| 388 @item Open a query buffer to talk to someone | |
| 389 | |
| 390 If you want to talk with someone in private (this should usually not be | |
| 391 done for technical help, only for personal questions), type ``/query | |
| 392 <nick>'', replacing ``<nick>'' with the nickname of the person you would | |
| 393 like to talk to. Depending on how ERC is set up, you will either see a | |
| 394 new buffer with the name of the person, or such a buffer will be created | |
| 395 in the background and you will have to switch to it. Begin typing | |
| 396 messages, and you will be able to have a conversation. | |
| 397 | |
| 398 Note that if the other person is not registered, you will not be able to | |
| 399 talk with them. | |
| 400 | |
| 401 @end itemize | |
| 402 | |
| 403 @node Special Features, , Sample Session, Getting Started | |
| 404 @comment node-name, next, previous, up | |
| 405 @section Special Features | |
| 406 | |
| 407 ERC has some features that distinguish it from some IRC clients. | |
| 408 | |
| 409 @itemize @bullet | |
| 410 | |
| 411 @item multiple channels and multiple servers | |
| 412 | |
| 413 Every channel is put in a separate buffer. Several IRC servers may be | |
| 414 connected to at the same time. | |
| 415 | |
| 416 @cindex query buffers | |
| 417 @item private message separation | |
| 418 | |
| 419 Private conversations are treated as channels, and are put into separate | |
| 420 buffers in Emacs. We call these ``query buffers''. | |
| 421 | |
| 422 @item highlighting | |
| 423 | |
|
84636
ffc87ddd4025
Sync changes from upstream ERC
Michael Olson <mwolson@gnu.org>
parents:
84387
diff
changeset
|
424 Some occurrences of words can be highlighted, which makes it easier to |
| 84293 | 425 track different kinds of conversations. |
| 426 | |
| 427 @item notification | |
| 428 | |
| 429 ERC can notify you that certain users are online. | |
| 430 | |
| 431 @item channel tracking | |
| 432 | |
| 433 Channels can be hidden and conversation continue in the background. You | |
| 434 are notified when something is said in such a channel that is not | |
| 435 currently visible. This makes it easy to get Real Work done while still | |
| 436 maintaining an IRC presence. | |
| 437 | |
| 438 @item nick completion | |
| 439 | |
| 440 ERC can complete words upon hitting @kbd{TAB}, which eases the writing | |
| 441 of nicknames in messages. | |
| 442 | |
| 443 @cindex history ring | |
| 444 @item history | |
| 445 | |
| 446 Past actions are kept in history rings for future use. To navigate a | |
| 447 history ring, hit @kbd{M-p} to go backwards and @kbd{M-n} to go | |
| 448 forwards. | |
| 449 | |
| 450 @item multiple languages | |
| 451 | |
| 452 Different channels and servers may have different language encodings. | |
| 453 | |
| 454 In addition, it is possible to translate the messages that ERC uses into | |
| 455 multiple languages. Please contact the developers of ERC at | |
| 456 @email{erc-discuss@@gnu.org} if you are interested in helping with the | |
| 457 translation effort. | |
| 458 | |
| 459 @item user scripting | |
| 460 | |
| 461 Users can load scripts (e.g. auto greeting scripts) when ERC starts up. | |
| 462 | |
| 463 It is also possible to make custom IRC commands, if you know a little | |
| 464 Emacs Lisp. Just make an Emacs Lisp function and call it | |
| 465 @code{erc-cmd-NEWCOMMAND}, where @code{NEWCOMMAND} is the name of the | |
| 466 new command in capital letters. | |
| 467 | |
| 468 @item auto reconnect | |
| 469 | |
| 470 If the connection goes away at some point, ERC will try to reconnect | |
| 471 automatically. If it fails to reconnect, and you want to try to | |
| 472 manually reestablish the connection at some later point, switch to an | |
| 473 ERC buffer and run the @code{/RECONNECT} command. | |
| 474 | |
| 475 @end itemize | |
| 476 | |
| 477 | |
| 478 @node Keystroke Summary, Modules, Getting Started, Top | |
| 479 @comment node-name, next, previous, up | |
| 480 @chapter Keys Used in ERC | |
| 481 @cindex keystrokes | |
| 482 | |
| 483 This is a summary of keystrokes available in every ERC buffer. | |
| 484 | |
| 485 @table @kbd | |
| 486 | |
| 487 @item C-a or <home> (`erc-bol') | |
| 488 Go to beginning of line or end of prompt. | |
| 489 | |
| 490 @item RET (`erc-send-current-line') | |
| 491 Send the current line | |
| 492 | |
| 493 @item TAB (`erc-complete-word') | |
| 494 If at prompt, complete the current word. | |
| 495 Otherwise, move to the next link or button. | |
| 496 | |
| 497 @item M-TAB (`ispell-complete-word') | |
| 498 Complete the given word, using ispell. | |
| 499 | |
| 500 @item C-c C-a (`erc-bol') | |
| 501 Go to beginning of line or end of prompt. | |
| 502 | |
| 503 @item C-c C-b (`erc-iswitchb') | |
| 504 Use `iswitchb-read-buffer' to prompt for a ERC buffer to switch to. | |
| 505 | |
| 506 @item C-c C-c (`erc-toggle-interpret-controls') | |
| 507 Toggle interpretation of control sequences in messages. | |
| 508 | |
| 509 @item C-c C-d (`erc-input-action') | |
| 510 Interactively input a user action and send it to IRC. | |
| 511 | |
| 512 @item C-c C-e (`erc-toggle-ctcp-autoresponse') | |
| 513 Toggle automatic CTCP replies (like VERSION and PING). | |
| 514 | |
| 515 @item C-c C-f (`erc-toggle-flood-control') | |
| 516 Toggle use of flood control on sent messages. | |
| 517 | |
| 518 @item C-c TAB (`erc-invite-only-mode') | |
| 519 Turn on the invite only mode (+i) for the current channel. | |
| 520 | |
| 521 @item C-c C-j (`erc-join-channel') | |
| 522 Join channel. If point is at the beginning of a channel name, use that | |
| 523 as default. | |
| 524 | |
| 525 @item C-c C-k (`erc-go-to-log-matches-buffer') | |
| 526 Interactively open an erc-log-matches buffer | |
| 527 | |
| 528 @item C-c C-l (`erc-save-buffer-in-logs') | |
| 529 Append buffer contents to the log file, if logging is enabled. | |
| 530 | |
| 531 @item C-c C-n (`erc-channel-names') | |
| 532 Run "/names #channel" in the current channel. | |
| 533 | |
| 534 @item C-c C-o (`erc-get-channel-mode-from-keypress') | |
| 535 Read a key sequence and call the corresponding channel mode function. | |
| 536 After doing @kbd{C-c C-o}, type in a channel mode letter. | |
| 537 | |
| 538 @kbd{C-g} means quit. | |
| 539 @kbd{RET} lets you type more than one mode at a time. | |
| 540 If @kbd{l} is pressed, @code{erc-set-channel-limit} gets called. | |
| 541 If @kbd{k} is pressed, @code{erc-set-channel-key} gets called. | |
| 542 Anything else will be sent to `erc-toggle-channel-mode'. | |
| 543 | |
| 544 @item C-c C-p (`erc-part-from-channel') | |
| 545 Part from the current channel and prompt for a reason. | |
| 546 | |
| 547 @item C-c C-q (`erc-quit-server') | |
| 548 Disconnect from current server after prompting for reason. | |
| 549 | |
| 550 @item C-c C-r (`erc-remove-text-properties-region') | |
| 551 Clears the region (start,end) in object from all colors, etc. | |
| 552 | |
| 553 @item C-c C-t (`erc-set-topic') | |
| 554 Prompt for a topic for the current channel. | |
| 555 | |
| 556 @item C-c C-u (`erc-kill-input') | |
| 557 Kill current input line using `erc-bol' followed by `kill-line'. | |
| 558 | |
| 559 @end table | |
| 560 | |
| 561 | |
| 562 @node Modules, Advanced Usage, Keystroke Summary, Top | |
| 563 @comment node-name, next, previous, up | |
| 564 @chapter Modules | |
| 565 @cindex modules | |
| 566 | |
| 567 One way to add functionality to ERC is to customize which of its many | |
| 568 modules are loaded. | |
| 569 | |
| 570 There is a spiffy customize interface, which may be reached by typing | |
| 571 @kbd{M-x customize-option erc-modules RET}. Alternatively, set | |
| 572 @code{erc-modules} manually and then call @code{erc-update-modules}. | |
| 573 | |
| 574 The following is a list of available modules. | |
| 575 | |
| 576 @table @code | |
| 577 | |
| 578 @cindex modules, autoaway | |
| 579 @item autoaway | |
| 580 Set away status automatically | |
| 581 | |
| 582 @cindex modules, autojoin | |
| 583 @item autojoin | |
| 584 Join channels automatically | |
| 585 | |
| 586 @cindex modules, bbdb | |
| 587 @item bbdb | |
| 588 Integrate with the Big Brother Database | |
| 589 | |
| 590 @cindex modules, button | |
| 591 @item button | |
| 592 Buttonize URLs, nicknames, and other text | |
| 593 | |
| 594 @cindex modules, capab-identify | |
| 595 @item capab-identify | |
| 596 Mark unidentified users on freenode and other servers supporting CAPAB. | |
| 597 | |
| 598 @cindex modules, completion | |
| 599 @cindex modules, pcomplete | |
| 600 @item completion (aka pcomplete) | |
| 601 Complete nicknames and commands (programmable) | |
| 602 | |
| 603 @cindex modules, fill | |
| 604 @item fill | |
| 605 Wrap long lines | |
| 606 | |
| 607 @cindex modules, hecomplete | |
| 608 @item hecomplete | |
| 609 Complete nicknames and commands (old). This is the old module---you | |
| 610 might prefer the ``completion'' module instead. | |
| 611 | |
| 612 @cindex modules, identd | |
| 613 @item identd | |
| 614 Launch an identd server on port 8113 | |
| 615 | |
| 616 @cindex modules, irccontrols | |
| 617 @item irccontrols | |
| 618 Highlight or remove IRC control characters | |
| 619 | |
| 620 @cindex modules, log | |
| 621 @item log | |
| 622 Save buffers in logs | |
| 623 | |
| 624 @cindex modules, match | |
| 625 @item match | |
| 626 Highlight pals, fools, and other keywords | |
| 627 | |
| 628 @cindex modules, menu | |
| 629 @item menu | |
| 630 Display a menu in ERC buffers | |
| 631 | |
| 632 @cindex modules, netsplit | |
| 633 @item netsplit | |
| 634 Detect netsplits | |
| 635 | |
| 636 @cindex modules, noncommands | |
| 637 @item noncommands | |
| 638 Don't display non-IRC commands after evaluation | |
| 639 | |
| 640 @cindex modules, notify | |
| 641 @item notify | |
| 642 Notify when the online status of certain users changes | |
| 643 | |
| 644 @cindex modules, page | |
| 645 @item page | |
| 646 Process CTCP PAGE requests from IRC | |
| 647 | |
| 648 @cindex modules, readonly | |
| 649 @item readonly | |
| 650 Make displayed lines read-only | |
| 651 | |
| 652 @cindex modules, replace | |
| 653 @item replace | |
| 654 Replace text in messages | |
| 655 | |
| 656 @cindex modules, ring | |
| 657 @item ring | |
| 658 Enable an input history | |
| 659 | |
| 660 @cindex modules, scrolltobottom | |
| 661 @item scrolltobottom | |
| 662 Scroll to the bottom of the buffer | |
| 663 | |
| 664 @cindex modules, services | |
| 665 @item services | |
| 666 Identify to Nickserv (IRC Services) automatically | |
| 667 | |
| 668 @cindex modules, smiley | |
| 669 @item smiley | |
| 670 Convert smileys to pretty icons | |
| 671 | |
| 672 @cindex modules, sound | |
| 673 @item sound | |
| 674 Play sounds when you receive CTCP SOUND requests | |
| 675 | |
| 676 @cindex modules, spelling | |
| 677 @item spelling | |
| 678 Check spelling of messages | |
| 679 | |
| 680 @cindex modules, stamp | |
| 681 @item stamp | |
| 682 Add timestamps to messages | |
| 683 | |
| 684 @cindex modules, track | |
| 685 @item track | |
| 686 Track channel activity in the mode-line | |
| 687 | |
| 688 @cindex modules, truncate | |
| 689 @item truncate | |
| 690 Truncate buffers to a certain size | |
| 691 | |
| 692 @cindex modules, unmorse | |
| 693 @item unmorse | |
| 694 Translate morse code in messages | |
| 695 | |
| 696 @end table | |
| 697 | |
| 698 @c PRE5_3: Document every option of every module in its own subnode | |
| 699 | |
| 700 | |
| 701 @node Advanced Usage, Getting Help and Reporting Bugs, Modules, Top | |
| 702 @comment node-name, next, previous, up | |
| 703 @chapter Advanced Usage | |
| 704 @cindex advanced topics | |
| 705 | |
| 706 @menu | |
| 707 * Connecting:: Ways of connecting to an IRC server. | |
| 708 * Sample Configuration:: An example configuration file. | |
| 709 * Options:: Options that are available for ERC. | |
| 710 @end menu | |
| 711 | |
| 712 @node Connecting, Sample Configuration, Advanced Usage, Advanced Usage | |
| 713 @comment node-name, next, previous, up | |
| 714 @section Connecting to an IRC Server | |
| 715 @cindex connecting | |
| 716 | |
| 717 The easiest way to connect to an IRC server is to call @kbd{M-x erc}. | |
| 718 If you want to assign this function to a keystroke, the following will | |
| 719 help you figure out its parameters. | |
| 720 | |
| 721 @defun erc | |
| 722 Select connection parameters and run ERC. | |
| 723 Non-interactively, it takes the following keyword arguments. | |
| 724 | |
| 725 @itemize @bullet | |
| 726 @item @var{server} | |
| 727 @item @var{port} | |
| 728 @item @var{nick} | |
| 729 @item @var{password} | |
| 730 @item @var{full-name} | |
| 731 @end itemize | |
| 732 | |
| 733 That is, if called with the following arguments, @var{server} and | |
| 734 @var{full-name} will be set to those values, whereas | |
| 735 @code{erc-compute-port}, @code{erc-compute-nick} and | |
| 736 @code{erc-compute-full-name} will be invoked for the values of the other | |
| 737 parameters. | |
| 738 | |
| 739 @example | |
| 740 (erc :server "irc.freenode.net" :full-name "Harry S Truman") | |
| 741 @end example | |
| 742 @end defun | |
| 743 | |
| 744 @subheading Server | |
| 745 | |
| 746 @defun erc-compute-server &optional server | |
| 747 Return an IRC server name. | |
| 748 | |
| 749 This tries a number of increasingly more default methods until a non-nil | |
| 750 value is found. | |
| 751 | |
| 752 @itemize @bullet | |
| 753 @item @var{server} (the argument passed to this function) | |
| 754 @item The @code{erc-server} option | |
| 755 @item The value of the IRCSERVER environment variable | |
| 756 @item The @code{erc-default-server} variable | |
| 757 @end itemize | |
| 758 | |
| 759 @end defun | |
| 760 | |
| 761 @defopt erc-server nil | |
| 762 IRC server to use if one is not provided. | |
| 763 @end defopt | |
| 764 | |
| 765 @subheading Port | |
| 766 | |
| 767 @defun erc-compute-port &optional port | |
| 768 Return a port for an IRC server. | |
| 769 | |
| 770 This tries a number of increasingly more default methods until a non-nil | |
| 771 value is found. | |
| 772 | |
| 773 @itemize @bullet | |
| 774 @item @var{port} (the argument passed to this function) | |
| 775 @item The @code{erc-port} option | |
| 776 @item The @code{erc-default-port} variable | |
| 777 @end itemize | |
| 778 | |
| 779 @end defun | |
| 780 | |
| 781 @defopt erc-port | |
| 782 IRC port to use if not specified. | |
| 783 | |
| 784 This can be either a string or a number. | |
| 785 @end defopt | |
| 786 | |
| 787 @subheading Nick | |
| 788 | |
| 789 @defun erc-compute-nick &optional nick | |
| 790 Return user's IRC nick. | |
| 791 | |
| 792 This tries a number of increasingly more default methods until a | |
| 793 non-nil value is found. | |
| 794 | |
| 795 @itemize | |
| 796 @item @var{nick} (the argument passed to this function) | |
| 797 @item The @code{erc-nick} option | |
| 798 @item The value of the IRCNICK environment variable | |
| 799 @item The result from the @code{user-login-name} function | |
| 800 @end itemize | |
| 801 | |
| 802 @end defun | |
| 803 | |
| 804 @defopt erc-nick | |
| 805 Nickname to use if one is not provided. | |
| 806 | |
| 807 This can be either a string, or a list of strings. | |
| 808 In the latter case, if the first nick in the list is already in use, | |
| 809 other nicks are tried in the list order. | |
| 810 @end defopt | |
| 811 | |
| 812 @defopt erc-nick-uniquifier | |
| 813 The string to append to the nick if it is already in use. | |
| 814 @end defopt | |
| 815 | |
| 816 @defopt erc-try-new-nick-p | |
| 817 If the nickname you chose isn't available, and this option is non-nil, | |
| 818 ERC should automatically attempt to connect with another nickname. | |
| 819 | |
| 820 You can manually set another nickname with the /NICK command. | |
| 821 @end defopt | |
| 822 | |
| 823 @subheading Full name | |
| 824 | |
| 825 @defun erc-compute-full-name &optional full-name | |
| 826 Return user's full name. | |
| 827 | |
| 828 This tries a number of increasingly more default methods until a | |
| 829 non-nil value is found. | |
| 830 | |
| 831 @itemize @bullet | |
| 832 @item @var{full-name} (the argument passed to this function) | |
| 833 @item The @code{erc-user-full-name} option | |
| 834 @item The value of the IRCNAME environment variable | |
| 835 @item The result from the @code{user-full-name} function | |
| 836 @end itemize | |
| 837 | |
| 838 @end defun | |
| 839 | |
| 840 @defopt erc-user-full-name | |
| 841 User full name. | |
| 842 | |
| 843 This can be either a string or a function to call. | |
| 844 @end defopt | |
| 845 | |
| 846 @node Sample Configuration, Options, Connecting, Advanced Usage | |
| 847 @comment node-name, next, previous, up | |
| 848 @section Sample Configuration | |
| 849 @cindex configuration, sample | |
| 850 | |
| 851 Here is an example of configuration settings for ERC. This can go into | |
| 852 your Emacs configuration file. Everything after the @code{(require | |
| 853 'erc)} command can optionally go into @file{~/.emacs.d/.ercrc.el}. | |
| 854 | |
| 855 @lisp | |
| 856 ;;; Sample ERC configuration | |
| 857 | |
| 858 ;; Add the ERC directory to load path -- you don't need this if you are | |
| 859 ;; using the version of ERC that comes with Emacs | |
| 860 (add-to-list 'load-path "~/elisp/erc") | |
| 861 | |
| 862 ;; Load ERC | |
| 863 (require 'erc) | |
| 864 | |
| 865 ;; Load authentication info from an external source. Put sensitive | |
| 866 ;; passwords and the like in here. | |
| 867 (load "~/.emacs.d/.erc-auth") | |
| 868 | |
| 869 ;; This is an example of how to make a new command. Type "/uptime" to | |
| 870 ;; use it. | |
| 871 (defun erc-cmd-UPTIME (&rest ignore) | |
| 872 "Display the uptime of the system, as well as some load-related | |
| 873 stuff, to the current ERC buffer." | |
| 874 (let ((uname-output | |
| 875 (replace-regexp-in-string | |
| 876 ", load average: " "] @{Load average@} [" | |
| 877 ;; Collapse spaces, remove | |
| 878 (replace-regexp-in-string | |
| 879 " +" " " | |
| 880 ;; Remove beginning and trailing whitespace | |
| 881 (replace-regexp-in-string | |
| 882 "^ +\\|[ \n]+$" "" | |
| 883 (shell-command-to-string "uptime")))))) | |
| 884 (erc-send-message | |
| 885 (concat "@{Uptime@} [" uname-output "]")))) | |
| 886 | |
| 887 ;; This causes ERC to connect to the Freenode network upon hitting | |
| 888 ;; C-c e f. Replace MYNICK with your IRC nick. | |
| 889 (global-set-key "\C-cef" (lambda () (interactive) | |
| 890 (erc :server "irc.freenode.net" :port "6667" | |
| 891 :nick "MYNICK"))) | |
| 892 | |
| 893 ;; This causes ERC to connect to the IRC server on your own machine (if | |
| 894 ;; you have one) upon hitting C-c e b. Replace MYNICK with your IRC | |
| 895 ;; nick. Often, people like to run bitlbee (http://bitlbee.org/) as an | |
| 896 ;; AIM/Jabber/MSN to IRC gateway, so that they can use ERC to chat with | |
| 897 ;; people on those networks. | |
| 898 (global-set-key "\C-ceb" (lambda () (interactive) | |
| 899 (erc :server "localhost" :port "6667" | |
| 900 :nick "MYNICK"))) | |
| 901 | |
| 902 ;; Make C-c RET (or C-c C-RET) send messages instead of RET. This has | |
| 903 ;; been commented out to avoid confusing new users. | |
| 904 ;; (define-key erc-mode-map (kbd "RET") nil) | |
| 905 ;; (define-key erc-mode-map (kbd "C-c RET") 'erc-send-current-line) | |
| 906 ;; (define-key erc-mode-map (kbd "C-c C-RET") 'erc-send-current-line) | |
| 907 | |
| 908 ;;; Options | |
| 909 | |
| 910 ;; Join the #emacs and #erc channels whenever connecting to Freenode. | |
| 911 (setq erc-autojoin-channels-alist '(("freenode.net" "#emacs" "#erc"))) | |
| 912 | |
| 913 ;; Interpret mIRC-style color commands in IRC chats | |
| 914 (setq erc-interpret-mirc-color t) | |
| 915 | |
| 916 ;; The following are commented out by default, but users of other | |
| 917 ;; non-Emacs IRC clients might find them useful. | |
| 918 ;; Kill buffers for channels after /part | |
| 919 ;; (setq erc-kill-buffer-on-part t) | |
| 920 ;; Kill buffers for private queries after quitting the server | |
| 921 ;; (setq erc-kill-queries-on-quit t) | |
| 922 ;; Kill buffers for server messages after quitting the server | |
| 923 ;; (setq erc-kill-server-buffer-on-quit t) | |
| 924 @end lisp | |
| 925 | |
| 926 @node Options, , Sample Configuration, Advanced Usage | |
| 927 @comment node-name, next, previous, up | |
| 928 @section Options | |
| 929 @cindex options | |
| 930 | |
| 931 @c PRE5_3: (Node) Document every ERC option (module options go in | |
| 932 @c previous chapter) | |
| 933 | |
| 934 This section has not yet been written. For now, the easiest way to | |
|
84387
4ee03308c9b6
Sync ERC 5.3 (devel) from upstream
Michael Olson <mwolson@gnu.org>
parents:
84329
diff
changeset
|
935 check out the available options for ERC is to do |
| 84293 | 936 @kbd{M-x customize-group erc RET}. |
| 937 | |
| 938 | |
| 939 @node Getting Help and Reporting Bugs, History, Advanced Usage, Top | |
| 940 @comment node-name, next, previous, up | |
| 941 @chapter Getting Help and Reporting Bugs | |
| 942 @cindex help, getting | |
| 943 @cindex bugs, reporting | |
| 944 | |
| 945 After you have read this guide, if you still have questions about ERC, | |
| 946 or if you have bugs to report, there are several places you can go. | |
| 947 | |
| 948 @itemize @bullet | |
| 949 | |
| 950 @item | |
|
84387
4ee03308c9b6
Sync ERC 5.3 (devel) from upstream
Michael Olson <mwolson@gnu.org>
parents:
84329
diff
changeset
|
951 @uref{http://www.emacswiki.org/cgi-bin/wiki/ERC} is the |
| 84293 | 952 emacswiki.org page for ERC. Anyone may add tips, hints, or bug |
| 953 descriptions to it. | |
| 954 | |
| 955 @item | |
| 956 There are several mailing lists for ERC. To subscribe, visit | |
| 957 @uref{http://savannah.gnu.org/mail/?group=erc}. | |
| 958 | |
| 959 The mailing lists are also available on Gmane. | |
| 960 (@url{http://gmane.org/}). Gmane provides additional methods for | |
| 961 accessing the mailing lists, adding content to them, and searching them. | |
| 962 | |
| 963 @enumerate | |
|
84387
4ee03308c9b6
Sync ERC 5.3 (devel) from upstream
Michael Olson <mwolson@gnu.org>
parents:
84329
diff
changeset
|
964 @item gmane.emacs.erc.announce: Announcements |
| 84293 | 965 |
|
84387
4ee03308c9b6
Sync ERC 5.3 (devel) from upstream
Michael Olson <mwolson@gnu.org>
parents:
84329
diff
changeset
|
966 @item gmane.emacs.erc.discuss: General discussion |
| 84293 | 967 |
|
84387
4ee03308c9b6
Sync ERC 5.3 (devel) from upstream
Michael Olson <mwolson@gnu.org>
parents:
84329
diff
changeset
|
968 @item gmane.emacs.erc.cvs: Log messages for changes to the ERC source code |
| 84293 | 969 |
| 970 @end enumerate | |
| 971 | |
| 972 @item | |
| 973 You can visit the IRC Freenode channel @samp{#emacs}. Many of the | |
| 974 contributors are frequently around and willing to answer your | |
| 975 questions. | |
| 976 | |
| 977 @end itemize | |
| 978 | |
| 979 | |
|
84387
4ee03308c9b6
Sync ERC 5.3 (devel) from upstream
Michael Olson <mwolson@gnu.org>
parents:
84329
diff
changeset
|
980 @node History, Copying, Getting Help and Reporting Bugs, Top |
| 84293 | 981 @comment node-name, next, previous, up |
| 982 @chapter History | |
| 983 @cindex history, of ERC | |
| 984 | |
| 985 ERC was originally written by Alexander L. Belikoff | |
| 986 @email{abel@@bfr.co.il} and Sergey Berezin | |
| 987 @email{sergey.berezin@@cs.cmu.edu}. They stopped development around | |
| 988 December 1999. Their last released version was ERC 2.0. | |
| 989 | |
| 990 P.S.: If one of the original developers of ERC reads this, we'd like to | |
| 991 receive additional information for this file and hear comments in | |
| 992 general. | |
| 993 | |
| 994 @itemize | |
| 995 @item 2001 | |
| 996 | |
| 997 In June 2001, Mario Lang @email{mlang@@delysid.org} and Alex Schroeder | |
| 998 @email{alex@@gnu.org} took over development and created a ERC Project at | |
| 999 @uref{http://sourceforge.net/projects/erc}. | |
| 1000 | |
| 1001 In reaction to a mail about the new ERC development effort, Sergey | |
| 1002 Berezin said, ``First of all, I'm glad that my version of ERC is being | |
| 1003 used out there. The thing is, I do not have free time and enough | |
| 1004 incentive anymore to work on ERC, so I would be happy if you guys take | |
| 1005 over the project entirely.'' | |
| 1006 | |
| 1007 So we happily hacked away on ERC, and soon after (September 2001) | |
| 1008 released the next "stable" version, 2.1. | |
| 1009 | |
| 1010 Most of the development of the new ERC happened on #emacs on | |
| 1011 irc.openprojects.net. Over time, many people contributed code, ideas, | |
| 1012 bugfixes, and a lot of alpha/beta/gamma testing. | |
| 1013 | |
| 1014 See the @file{CREDITS} file for a list of contributors. | |
| 1015 | |
| 1016 @item 2003 | |
| 1017 | |
| 1018 ERC 3.0 was released. | |
| 1019 | |
| 1020 @item 2004 | |
| 1021 | |
| 1022 ERC 4.0 was released. | |
| 1023 | |
| 1024 @item 2005 | |
| 1025 | |
| 1026 ERC 5.0 was released. Michael Olson @email{mwolson@@gnu.org} became | |
| 1027 the release manager and eventually the maintainer. | |
| 1028 | |
| 1029 After some discussion between him and the Emacs developers, it was | |
| 1030 decided to include ERC in Emacs. | |
| 1031 | |
| 1032 @item 2006 | |
| 1033 | |
| 1034 ERC 5.1 was released. It was subsequently included in Emacs 22. | |
| 1035 | |
| 1036 ERC became an official GNU project, and development moved to | |
| 1037 @uref{http://sv.gnu.org/projects/erc}. We switched to using GNU Arch as | |
| 1038 our revision control system. Our mailing list address changed as well. | |
| 1039 | |
| 88015 | 1040 @item 2007 |
| 1041 | |
| 1042 We switched to using git for our version control system. | |
| 1043 | |
| 84293 | 1044 @end itemize |
| 1045 | |
|
84387
4ee03308c9b6
Sync ERC 5.3 (devel) from upstream
Michael Olson <mwolson@gnu.org>
parents:
84329
diff
changeset
|
1046 @node Copying, GNU Free Documentation License, History, Top |
|
4ee03308c9b6
Sync ERC 5.3 (devel) from upstream
Michael Olson <mwolson@gnu.org>
parents:
84329
diff
changeset
|
1047 @comment node-name, next, previous, up |
|
4ee03308c9b6
Sync ERC 5.3 (devel) from upstream
Michael Olson <mwolson@gnu.org>
parents:
84329
diff
changeset
|
1048 @include gpl.texi |
|
4ee03308c9b6
Sync ERC 5.3 (devel) from upstream
Michael Olson <mwolson@gnu.org>
parents:
84329
diff
changeset
|
1049 |
|
4ee03308c9b6
Sync ERC 5.3 (devel) from upstream
Michael Olson <mwolson@gnu.org>
parents:
84329
diff
changeset
|
1050 @node GNU Free Documentation License, Concept Index, Copying, Top |
|
4ee03308c9b6
Sync ERC 5.3 (devel) from upstream
Michael Olson <mwolson@gnu.org>
parents:
84329
diff
changeset
|
1051 @comment node-name, next, previous, up |
| 84293 | 1052 @include doclicense.texi |
| 1053 | |
| 1054 @node Concept Index, , GNU Free Documentation License, Top | |
| 1055 @comment node-name, next, previous, up | |
| 1056 @unnumbered Index | |
| 1057 | |
| 1058 @printindex cp | |
| 1059 | |
| 1060 @bye | |
| 1061 | |
| 1062 @ignore | |
| 1063 arch-tag: cf9cfaff-fc12-4297-ad15-ec2493002b1e | |
| 1064 @end ignore |
