spacemacs/layers/!irc/erc/extensions/erc-yank/README.md
syl20bnr 6b33031dc5 core: dotspacemacs-distribution, spacemacs-core layer and rename contrib
- Rename contrib directory to layers
- Add new variable dotspacemacs-distribution
- Move spacemacs layer to layers/!distribution
- New layer spacemacs-core in layers/!distribution
- User can now set dotspacemacs-distribution to spacemacs or
  spacemacs-core (default spacemacs)

spacemacs-core is very lightweight layer sufficient to build upon
spacemacs.
2015-09-07 23:44:43 -04:00

20 lines
466 B
Markdown

# erc-yank
Automagically create a Gist if pasting more than 5 lines
Hook in as follows:
(add-hook 'erc-mode-hook
(lambda () (define-key erc-mode-map [(control ?y)] 'erc-yank)))
Or, if you want to use my `use-package' macro:
(use-package erc
:commands erc
:config
(use-package erc-yank
:init
(bind-key "C-y" 'erc-yank erc-mode-map)))
This module requires gist.el, from: https://github.com/defunkt/gist.el