Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct method of posting in ERC #6

Closed
TheBB opened this issue Aug 15, 2011 · 3 comments
Closed

Correct method of posting in ERC #6

TheBB opened this issue Aug 15, 2011 · 3 comments

Comments

@TheBB
Copy link
Member

TheBB commented Aug 15, 2011

Originally reported by: Anonymous


(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?


@TheBB
Copy link
Member Author

TheBB commented Aug 15, 2011

Original comment by srhb (Bitbucket: srhb, GitHub: 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.

@TheBB
Copy link
Member Author

TheBB commented Aug 15, 2011

Original comment by srhb (Bitbucket: srhb, GitHub: srhb):


And with (kbd "RET") it isn't horrible either. Sorry for the spam. O:-)

@TheBB
Copy link
Member Author

TheBB commented Aug 18, 2011

Original comment by Vegard Øye (Bitbucket: epsil, GitHub: epsil):


ERC integration is added in commit 895f1cf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant