Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(530)

Side by Side Diff: docs/erc_irc.md

Issue 1314513007: [Docs]: Update to match style guide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « docs/emacs.md ('k') | docs/git_cookbook.md » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # ERC IRC
2
1 It's very simple to get started with ERC; just do the following: 3 It's very simple to get started with ERC; just do the following:
2 1. Optional: Sign up at freenode.net to claim your nickname. 4
3 1. M-x 5 1. Optional: Sign up at freenode.net to claim your nickname.
4 1. erc (and accept default for the first couple of items) 6 1. M-x
5 1. /join #chromium 7 1. erc (and accept default for the first couple of items)
8 1. /join #chromium
6 9
7 You may notice the following problems: 10 You may notice the following problems:
8 * It's hard to notice when you're mentioned.
9 * ERC does not have built-in accidental paste prevention, so you might acciden tally paste multiple lines of text into the IRC channel.
10 11
11 You can modify the following and add it to your .emacs file to fix both of the a bove. Note that you'll need to install and configure sendxmpp for the mention ha ck, which also requires you to create an account for your "robot" on e.g. jabber .org: 12 * It's hard to notice when you're mentioned.
13 * ERC does not have built-in accidental paste prevention, so you might
14 accidentally paste multiple lines of text into the IRC channel.
12 15
13 ``` 16 You can modify the following and add it to your .emacs file to fix both of the
17 above. Note that you'll need to install and configure sendxmpp for the mention
18 hack, which also requires you to create an account for your "robot" on e.g.
19 jabber.org:
20
21 ```el
14 (require 'erc) 22 (require 'erc)
15 23
16 ;; Notify me when someone mentions my nick or aliases on IRC. 24 ;; Notify me when someone mentions my nick or aliases on IRC.
17 (erc-match-mode 1) 25 (erc-match-mode 1)
18 (add-to-list 'erc-keywords "\\bjoi\\b") 26 (add-to-list 'erc-keywords "\\bjoi\\b")
19 ;; Only when I'm sheriff. 27 ;; Only when I'm sheriff.
20 ;;(add-to-list 'erc-keywords "\\bsheriff\\b") 28 ;;(add-to-list 'erc-keywords "\\bsheriff\\b")
21 ;;(add-to-list 'erc-keywords "\\bsheriffs\\b") 29 ;;(add-to-list 'erc-keywords "\\bsheriffs\\b")
22 (defun erc-global-notify (matched-type nick msg) 30 (defun erc-global-notify (matched-type nick msg)
23 (interactive) 31 (interactive)
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 (setq erc-last-input-time now)) 90 (setq erc-last-input-time now))
83 (switch-to-buffer "*ERC Accidental Paste Overflow*") 91 (switch-to-buffer "*ERC Accidental Paste Overflow*")
84 (lwarn 'erc :warning "You seem to have accidentally pasted some text!")))) 92 (lwarn 'erc :warning "You seem to have accidentally pasted some text!"))))
85 93
86 (add-hook 'erc-mode-hook 94 (add-hook 'erc-mode-hook
87 '(lambda () 95 '(lambda ()
88 (define-key erc-mode-map "\C-m" 'erc-send-current-line-with-paste-p rotection) 96 (define-key erc-mode-map "\C-m" 'erc-send-current-line-with-paste-p rotection)
89 )) 97 ))
90 ``` 98 ```
91 99
92 Note: The paste protection code is modified from a paste by user 'yashh' at http ://paste.lisp.org/display/78068 (Google cache [here](http://webcache.googleuserc ontent.com/search?q=cache:p_S9ZKlWZPoJ:paste.lisp.org/display/78068+paste+78068& cd=1&hl=en&ct=clnk&gl=ca&source=www.google.ca)). 100 Note: The paste protection code is modified from a paste by user 'yashh' at
101 http://paste.lisp.org/display/78068 (Google cache
102 [here](http://webcache.googleusercontent.com/search?q=cache:p_S9ZKlWZPoJ:paste.l isp.org/display/78068+paste+78068&cd=1&hl=en&ct=clnk&gl=ca&source=www.google.ca) ).
OLDNEW
« no previous file with comments | « docs/emacs.md ('k') | docs/git_cookbook.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698