emacs必须要LANG=zh_CN.UTF-8才能输入中文吗?

Vim、Emacs配置和使用
回复
waterloo2005
帖子: 362
注册时间: 2007-01-15 20:53

emacs必须要LANG=zh_CN.UTF-8才能输入中文吗?

#1

帖子 waterloo2005 » 2015-01-15 21:47

我在ubuntu12.04 amd64下使用 emacs 23 。
在.emacs中用(global-set-key (kbd "C-SPC") 'nil) 关闭了C-space的mark功能。

我系统的locale环境是LANG=en_US.UTF-8,开启emacs后无法用C-space或其他的键激活fcitx。

用 `LANG=zh_CN.UTF-8 emacs` 后,就可以用C-space激活fcitx。

请问必须是中文环境下才可以在emacs使用中文输入法吗?

谢谢
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: emacs必须要LANG=zh_CN.UTF-8才能输入中文吗?

#2

帖子 poloshiao » 2015-01-16 7:30

请问必须是中文环境下才可以在emacs使用中文输入法吗?
最少需要
LC_CTYPE=zh_CN.UTF-8
詳細參閱
https://help.ubuntu.com/community/Local ... ed_locales
waterloo2005
帖子: 362
注册时间: 2007-01-15 20:53

Re: emacs必须要LANG=zh_CN.UTF-8才能输入中文吗?

#3

帖子 waterloo2005 » 2015-01-16 9:30

poloshiao 写了:
请问必须是中文环境下才可以在emacs使用中文输入法吗?
最少需要
LC_CTYPE=zh_CN.UTF-8
詳細參閱
https://help.ubuntu.com/community/Local ... ed_locales
谢谢,你给的那个页面没有提到输入法方面的问题啊。

还有scim和ibus也是这个情况吗?
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: emacs必须要LANG=zh_CN.UTF-8才能输入中文吗?

#4

帖子 poloshiao » 2015-01-16 18:34

谢谢,你给的那个页面没有提到输入法方面的问题啊。
还有scim和ibus也是这个情况吗?
參閱 README 有詳細描述
1. sudo dpkg -L ibus | grep README
2. sudo dpkg -L scim | grep README
回复