在为 emacs 中的 vim 仿真加载 EVIL 之前,我的 .emacs
文件中有以下内容:
(activate-input-method "english-dvorak")
(setq default-input-method "english-dvorak")
但是,当我键入 /
以使用 EVIL 开始增量搜索时,未使用默认输入法。为什么是这样?我怎样才能让 EVIL 在我在屏幕上输入字母时使用默认输入法?
我能够通过在执行这些函数的其余代码之前将 qwerty 字符映射到 dvorak 来正确支持 f
和 t
命令,但是我仍然无法通过 /
进行搜索以使用 dvorak。
最佳答案
我在我的 PC 上测试了以下配置,它似乎使 Dvorak 在 Emacs 中无处不在:
;; Main setup for all the buffers
(defadvice switch-to-buffer (after activate-input-method activate)
(activate-input-method "english-dvorak"))
;; Sets up Dvorak for the minibuffer
(add-hook 'minibuffer-setup-hook (lambda () (set-input-method "english-dvorak")))
;; Sets up Dvorak for *scratch* buffer (used Qwerty on my PC otherwise)
(save-excursion
(set-buffer (get-buffer "*scratch*"))
(set-input-method "english-dvorak"))
关于emacs - 在 EVIL 中进行增量搜索时使用默认输入法?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15169428/