在emacs中调用外部输入法scim
slackware吧
全部回复
仅看楼主
level 7
unibsd💤 楼主
emacs-24.3-with-x11
zh_CN.UTF-8编码下,emacs中无法正常调用scim,只能在第一次打开emacs时正常调用scim,之后再打开的emacs中无法使用scim;
zh_TW.UTF-8编码下,每次打开emacs都可以正常调用scim
zh_TW.GBK编码下,每次打开emacs都可以正常调用scim
好像这是emacs的bug,我当前绕过这个bug的方法有两个:
方法一:
使用root权限执行以下命令
mv /usr/lib64/locale/zh_TW.utf8 /usr/lib64/locale/zh_TW.utf8.bak
cp -r /usr/lib64/locale/zh_CN.utf8 /usr/lib64/locale/zh_TW.utf8
sed -i '/Exec=/ {s/^/#&/}' /usr/share/applications/emacs.desktop
sed -i '/Exec=/a\Exec=env LC_CTYPE=zh_TW.utf8 emacs %F' /usr/share/applications/emacs.desktop
方法二:
http://www.emacswiki.org/emacs/ScimBridge_Chinese
额外参考:
http://forum.salixos.org/viewtopic.php?f=16&t=6123&start=40
2015年12月30日 17点12分 1
level 7
unibsd💤 楼主
方法三:这个方法需要重启桌面后才能看到效果,
https://tieba.baidu.com/p/2054626718?pid=27423209719&cid=27452802453#27452802453
原来吧内已经有人解决了这个问题,哈哈
2015年12月30日 17点12分 3
1