最近在使用 Emacs ,但是遇到了一个问题,在调用外部输入法输入时,屏幕上一直在刷新,影响 Emacs 的流畅感。在网上搜索了一下,发现也有其他人遇到过这个问题,后来他自己开发了一个 Emacs 下的中文输入包 A Chinese input method which support quanpin, shuangpin, wubi and cangjie. - pyim(Emacs 作为一个操作系统真不是吹的)。
由于 Spacemacs 中有一个 Chinese Layer ,只要启动这个 layer 之后,就可以轻松的调用 pyim 了。
-
在
.spacemacs
或者.spacemacs.d/init.el
中找到dotspacemacs-configuration-layers
,添加一下 「chinese」,然后重新启动 Emacs。
Jietu20180417-124747.jpg
-
安装 CodeFalling/fcitx-remote-for-osx: A simulate fcitx-remote to handle osx input method in command line,Mac 下的命令是
brew install fcitx-remote-for-osx --with-input-method=<method>
-
在 Emacs 中可以使用
C+\
来切换使用 pyim,效率又被提高了。
网友评论