This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/contrib/irc/erc/extensions/erc-yank
2015-04-28 00:04:34 -04:00
..
erc-yank.el ERC layer: Many improvements 2015-04-28 00:04:34 -04:00
README.md ERC layer: Many improvements 2015-04-28 00:04:34 -04:00

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