开发者

Getting viper-mode to play well with magit-key-mode

开发者 https://www.devze.com 2023-02-16 16:17 出处:网络
I use viper-mode in emacs and magit with magit-key-mode. Problem I am having is that I don\'t want viper to load in magit-key-mode as I then must hit Ctl-z to get into emacs mode before开发者_开发技巧

I use viper-mode in emacs and magit with magit-key-mode. Problem I am having is that I don't want viper to load in magit-key-mode as I then must hit Ctl-z to get into emacs mode before开发者_开发技巧 selecting a key in the magit-key-mode buffer? Any ideas on how to selectively turn off viper-mode for magit-key-mode?


;; don't allow viper-mode to load in certain modes
(when (boundp 'viper-emacs-state-mode-list)
  (mapc (lambda (mode)
          (add-to-list 'viper-emacs-state-mode-list mode))
        '(magit-key-mode)))
0

精彩评论

暂无评论...
验证码 换一张
取 消