added a few keybindings and documentation

This commit is contained in:
Christoph Paulik 2015-03-25 19:29:11 +01:00 committed by syl20bnr
parent 9723aaead9
commit 4ab8f723c5
2 changed files with 29 additions and 1 deletions

View File

@ -33,3 +33,13 @@ To use this contribution add it to your `~/.spacemacs`
Key Binding | Description
--------------|------------------------------------------------------------
`<SPC> a e` | Starts ERC
`<SPC> m b` | Switch between ERC buffers
`<SPC> m d` | Interactively input a user action and send it to IRC.
`<SPC> m j` | Join a channel, executes the /join command
`<SPC> m n` | Run "/names #channel" in the current channel.
`<SPC> m l` | Run the /list command
`<SPC> m p` | Part from the channel
`<SPC> m q` | Quit server

View File

@ -38,11 +38,29 @@ which require an initialization must be listed explicitly in the list.")
:defer t
:init
(progn
(evil-leader/set-key "ae" 'erc)
(defun erc-list-command ()
"execute the list command"
(interactive)
(insert "/list")
(erc-send-current-line))
(setq erc-kill-buffer-on-part t)
(setq erc-kill-queries-on-quit t)
(setq erc-kill-server-buffer-on-quit t)
(erc-track-mode t)
(setq erc-track-exclude-types '("JOIN" "NICK" "PART" "QUIT" "MODE"))
(setq erc-server-coding-system '(utf-8 . utf-8))))
;; keybindings
(evil-leader/set-key "ae" 'erc)
(evil-leader/set-key-for-mode 'erc-mode
"mb" 'erc-iswitchb
"md" 'erc-input-action
"mj" 'erc-join-channel
"mn" 'erc-channel-names
"ml" 'erc-list-command
"mp" 'erc-part-from-channel
"mq" 'erc-quit-server
)
)