1. Frank Fischer
  2. evil
Issue #6 resolved

Correct method of posting in ERC

Anonymous created an issue

(I know I should have posted to gmane - but for the life of me I just cannot figure that site out!)

With only evil-mode running, there's no way of posting to erc except erc-send-current-line, I think. It's normally bound to RET, but evil shadows this. What's the correct way to rebind it for erc mode only?

Comments (3)

  1. srhb

    (I posted the above message.) I'm an idiot for not figuring it out (and for failing to log in.)

    (defun evil-erc-hook() (define-key evil-insert-state-local-map "^M" 'erc-send-current-line)) (add-hook 'erc-mode-hook 'evil-erc-hook)

    Does the trick on OS X.

  2. Log in to comment