Fix erc/README.org

This commit is contained in:
Eivind Fonn 2016-04-08 18:05:44 +02:00
parent 9e1909f5e0
commit e6948533df
1 changed files with 30 additions and 29 deletions

View File

@ -43,42 +43,44 @@ It's recommended to install the [[https://github.com/alloy/terminal-notifier][te
notifications via the OS X Notification Center.
** Social graph
[[https://github.com/vibhavp/erc-social-graph][erc-social-graph]] needs graphviz to be installed on your system.
[[https://github.com/vibhavp/erc-social-graph][erc-social-graph]] needs graphviz to be installed on your system.
** Default servers
You can define the default servers in the ERC custom layout by setting the variable =erc-server-list=.
Setting =:ssl= non nil will connect with =erc-tls=. You can also use =<leader>aiD=
to connect to your default servers outside the custom layout.
#+BEGIN_SRC emacs-lisp
(setq-default dotspacemacs-configuration-layers
'((erc :variables
erc-server-list
'(("irc.freenode.net"
:port "6697"
:ssl t
:nick "some-user"
:password "secret")
("irc.myworkirc.net"
:port "1234"
:nick "some-suit"
:password "hunter2")))))
#+END_SRC
You can define the default servers in the ERC custom layout by setting the
variable =erc-server-list=. Setting =:ssl= non nil will connect with =erc-tls=.
You can also use =<leader>aiD= to connect to your default servers outside the
custom layout.
#+BEGIN_SRC emacs-lisp
(setq-default dotspacemacs-configuration-layers
'((erc :variables
erc-server-list
'(("irc.freenode.net"
:port "6697"
:ssl t
:nick "some-user"
:password "secret")
("irc.myworkirc.net"
:port "1234"
:nick "some-suit"
:password "hunter2")))))
#+END_SRC
*** Security Note
You should not store your passwords in the clear in your =.spacemacs=, and
that goes double if you version your config file. ERC allows for a number
of ways of protecting this information.
You should not store your passwords in the clear in your =.spacemacs=, and that
goes double if you version your config file. ERC allows for a number of ways of
protecting this information.
First, ERC will check your =~/.authinfo.gpg=, looking for lines like
First, ERC will check your =~/.authinfo.gpg=, looking for lines like
#+BEGIN_SRC shell
machine <irc.server.url> login <yournick> password <yourpassword> port <portnumber>
#+END_SRC
#+BEGIN_SRC shell
machine <irc.server.url> login <yournick> password <yourpassword> port <portnumber>
#+END_SRC
You can omit =:password= in this case.
You can omit =:password= in this case.
You could also set an environment variable (or otherwise secret variable) and
read that in =:password=.
You could also set an environment variable (or otherwise secret variable) and
read that in =:password=.
* Key bindings
@ -101,7 +103,6 @@ notifications via the OS X Notification Center.
command on ~SPC a i E~ instead of the =erc= command.
* Spacemacs Layout Support
ERC buffers are added automatically to the default layout for ERC controlled by
the variable ~erc-spacemacs-layout-name~ (defaults to "@ERC") and the default
binding ("E") is controlled by ~erc-spacemacs-layout-binding~