2

On the following setup:

  • GNU Emacs 24.4.1 (i586-pc-linux-gnu, GTK+ Version 3.14.5) of 2015-03-07 on binet, modified by Debian
  • Evil version 1.1.6

If I enter M-x calendar, I find that several of the keybindings listed in the manual don't work. For example, instead of scrolling forward by 3 months, C-v instead enters Visual Block Mode.

Without uninstalling evil-mode, by which means can I prevent the default keybindings being intercepted, so that they will function as described in the Emacs manual.

2

(evil-set-initial-state 'calendar-mode 'emacs) should do what you want.

2
  • Thanks. I tried that before asking, but I now see that it apparently needs to come after e.g. (require 'evil) (evil-mode t) .
    – user8341
    Jul 20 '15 at 22:23
  • Right. That's because evil-set-initial-state is defined in evil-core.el Jul 20 '15 at 22:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy