Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'd like to remap the toggle key for emacs evil mode. From Ctrl+Z to something that won't confuse me like the CUA bindings (I'd like Ctrl+Alt+`, but I think that terms don't recognize that one).

In this external thread is a discussion on trying to do this with Viper mode.

Once one is fairly used to using less, Gmail, and Vimium, the vim key bindings for browsing are nice to go easy on the hands when mostly reading files. Less hitting the Ctrl which helps the hands/wrists.

share|improve this question
add comment

2 Answers

I can modify the source by changing this line, to use ctrl backtick:

evil-vars.el

(defcustom evil-toggle-key "C-`"

I'd rather have a way that doesn't modify the source to make it easier to upgrade later, but this should work. This hack definitely works.

share|improve this answer
add comment

No need to modify the source. Just customize "evil-toggle-key".

M-x customize-variable evil-toggle-key

You can also just set the variable using setq. Make sure you set that variable before emacs loads evil, since evil uses the variable's value when setting the keymaps up. For example, this is how it goes in my .emacs:

(setq evil-toggle-key "C-`")
(require 'evil)

:)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.