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.
Asked
Active
Viewed 115 times
1 Answers
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