spacemacs/layers/+chat/erc/local/erc-yank
syl20bnr 9d0558992c layers directory: create new categories
+chat
+checkers
+emacs
+intl
+os
+pair-programming
+tags
+theme
+web-services
2016-03-23 21:39:43 -04:00
..
erc-yank.el layers directory: create new categories 2016-03-23 21:39:43 -04:00
README.md layers directory: create new categories 2016-03-23 21:39:43 -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