Emacs 那些事儿我爱编程

【emacs-01】 在 Spacemacs 中使用 pyim

2018-04-17  本文已影响524人  2ce0a88c0452

最近在使用 Emacs ,但是遇到了一个问题,在调用外部输入法输入时,屏幕上一直在刷新,影响 Emacs 的流畅感。在网上搜索了一下,发现也有其他人遇到过这个问题,后来他自己开发了一个 Emacs 下的中文输入包 A Chinese input method which support quanpin, shuangpin, wubi and cangjie. - pyim(Emacs 作为一个操作系统真不是吹的)。

由于 Spacemacs 中有一个 Chinese Layer ,只要启动这个 layer 之后,就可以轻松的调用 pyim 了。

  1. .spacemacs或者.spacemacs.d/init.el中找到 dotspacemacs-configuration-layers,添加一下 「chinese」,然后重新启动 Emacs。

    Jietu20180417-124747.jpg
  2. 安装 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>

  3. 在 Emacs 中可以使用 C+\ 来切换使用 pyim,效率又被提高了。

上一篇 下一篇

猜你喜欢

热点阅读