Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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
I think the OP should pick this for the answer. :) – Short Dec 22 '15 at 5:12

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


(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

Your Answer


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.