1

In Emacs, I want to define the key to enable/disable the viper-mode. When I press the F6, if viper-mode not enabled, then enable it; if viper-mode enabled, then disable it. Thanks.

Mingo
  • 1,613
  • 2
  • 16
  • 20

1 Answers1

4
(global-set-key [f6] 'toggle-viper-mode)

May pose problems in modes which locally rebind F6. If that happens, see this related question

Community
  • 1
  • 1
Francois G
  • 11,957
  • 54
  • 59