I am using the bs-show function via the mapping:
(global-set-key (kbd "C-x C-b") 'bs-show)
However, since I also use evil-mode I find that the single key commands do not work until I switch from normal ("N") mode to emacs ("E") mode within evil each time I run the bs-show function. How can I disable evil mode within the BufferSelection menu on a permanent basis?
答案 0 :(得分:2)
不是完全禁用邪恶模式,也许你可以在Emacs模式下为bs-mode启动邪恶,如下所示:
(evil-set-initial-state 'bs-mode 'emacs)
答案 1 :(得分:1)
如果你想要 bs-mode (我仍然喜欢所有的新东西),那么它是值得的,就像我发现这样person's configuration工作得好:
; BS-menu
(defadvice bs-mode (before bs-mode-override-keybindings activate)
;; use the standard bs bindings as a base
(evil-make-overriding-map bs-mode-map 'normal t)
(evil-define-key 'normal bs-mode-map "h" 'evil-backward-char)
(evil-define-key 'normal bs-mode-map "q" 'bs-abort)
(evil-define-key 'normal bs-mode-map "j" 'bs-down)
(evil-define-key 'normal bs-mode-map "k" 'bs-up)
(evil-define-key 'normal bs-mode-map "l" 'evil-forward-char)
(evil-define-key 'normal bs-mode-map "RET" 'bs-select))