2011-03-12 15 views
0

我在emacs中使用viper模式,在魔法鍵模式下使用magit。我遇到的問題是我不希望viper加載到magit-key-mode中,因爲我必須在選擇magit-key-mode緩衝區中的某個鍵之前打開Ctl-z進入emacs模式?關於如何有選擇地關閉蛇形模式的魔法鍵模式的任何想法?viper-mode在魔法鍵模式下玩得很好

回答

1
;; 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))) 
相關問題