美文网首页Emacs 那些事儿我爱编程
【emacs-01】 在 Spacemacs 中使用 pyim

【emacs-01】 在 Spacemacs 中使用 pyim

作者: 2ce0a88c0452 | 来源:发表于2018-04-17 12:55 被阅读524次

最近在使用 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,效率又被提高了。

相关文章

网友评论

    本文标题:【emacs-01】 在 Spacemacs 中使用 pyim

    本文链接:https://www.haomeiwen.com/subject/uivukftx.html