Skip to content
Automagically create a Gist in ERC if pasting more than 5 lines
Emacs Lisp
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


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
  (use-package erc-yank
    (bind-key "C-y" 'erc-yank erc-mode-map)))

This module requires gist.el, from:

You can’t perform that action at this time.