[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: debian 中 使用emacs 中文输入问题



debian的标准做法是用dpkg-reconfigure locales做图形化配置,或者手工在/etc/default/locale中设定LANG。
~/.bashrc的特性是对于直接执行的某些程序(例如不继承环境也不启动bash)是无效的。一般在自己的console里面设定自己用的LANG时用这个。


在 2013年11月3日上午10:35,长歌门-肖头 [CGM]sgxiao <sgxiaoster@gmail.com>写道:

我自己的解决方法是 把下面两行放到 ~/.bashrc 里面,然后重新登录。

export LC_ALL=zh_CN.utf8
export LANG=zh_CN.utf8

我个人不喜欢图形界面的 emacs。因此  emacs -nw 这个变量也做了一个alias放到 ~/.bashrc 里面


alias emacs='emacs -nw'

在 2013年11月1日下午1:31,Wape Yang <wapeyang@gmail.com>写道:

哦???刚开始我用的fcitx 输入法 在网上搜了好多都不行,看到贴子说用ibus 下载ibus.el 可以,就下载ibus.el
不过现在问题 解决,
dpkg-reconfigure locales 这个命令没有执行成功(呵呵 我执行了,但就没有 用“空格” 去选择)以为默认的就会全部安装呢。
执行这个命令 安装 好 zh_cn.utf-8 后 输入没有问题 了 emacs和emacs -nw 都输入汉字正常了 也没有乱码了。



在 2013年11月1日下午12:21,Shell Xu <shell909090@gmail.com>写道:
debian下使用emacs23/24,一点问题都没有。
配合ibus,没用ibus.el,直接输入的。


在 2013年11月1日上午9:59,Wape Yang <wapeyang@gmail.com>写道:
在debian环境中使用emacs 中文输入问题 
有人在使用吗
更换了输入法 ibus 也下载了  ibus.el

但输入不下内容 在.emacs 配置文件中 禁用了ctrl+space
ctrl_space 可以切换出输入法 ,,,在emacs当前光禁的位置,,插入不上内容,
打字时ibus输入法也显示你要打什么字,但就是打出字插入不到emacs中

.profile 也设置了 zh_cn.utf8
这是在xemacs中的情况
........................................................
在 emacs -nw 中的情况中 也可以切换出 ibus 输入,可以打字插入内容,插入的内容成了乱码像“?!”这类的符号。
还有就是 我感觉 用 emacs -nw  环境 好像没有 应用 .emacs 这个配置 文件似的,设置的 color theme 都不显示。

---------------------------------------------------------------
有什么 处理方法吗.



--
彼節者有間,而刀刃者無厚;以無厚入有間,恢恢乎其於游刃必有餘地矣。
blog: http://shell909090.com/blog/
about.mehttp://about.me/shell909090





--
彼節者有間,而刀刃者無厚;以無厚入有間,恢恢乎其於游刃必有餘地矣。
blog: http://shell909090.com/blog/
about.mehttp://about.me/shell909090

Reply to: