LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1089|回复: 5

请教emacs的中文设置问题

[复制链接]
发表于 2006-10-16 21:05:27 | 显示全部楼层 |阅读模式
我只想要终端中能够显示和输入中文就可以了,搜索了一些emacs的中文设置文件,并按照所指示的方法把
;; chinese GB
(set-language-environment 'Chinese-GB)

(prefer-coding-system 'utf-8)
(set-terminal-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)
(set-buffer-file-coding-system 'chinese-iso-8bit)
(setq default-buffer-file-coding-system 'chinese-iso-8bit)
(set-clipboard-coding-system 'chinese-iso-8bit)
(set-selection-coding-system 'utf-8)
(modify-coding-system-alist 'process "*" 'utf-8)
(setq locale-coding-system 'utf-8)

加进了 ~/.emacs 我所使用的locale 为 zh_CN.UTF-8

但是终端下emacs中文还是不能显示和用scim输入,
我在一个文件里打了"中文设置" 这四个字,在emacs里显示为
\344\270\255\346\226\207\346\265\213\350\257\225
请问各位有遇到这种情况吗?
发表于 2006-10-16 21:21:13 | 显示全部楼层
你的Èïïå“入中文吗?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-16 22:03:20 | 显示全部楼层
用scim是无法输入中文,其他的输入工具没有试过
回复 支持 反对

使用道具 举报

发表于 2006-10-16 22:55:49 | 显示全部楼层
用Fcitx好些,不过“你”这个字无法显示.

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

发表于 2006-10-16 23:41:54 | 显示全部楼层
(custom-set-variables
'(current-language-environment "Chinese-GBK")
'(current-language-environment 'utf-8)
'(prefer-coding-system 'utf-8))
我是en_US.UTF-8的locale,加入上面的就可以完美显示,输入中文了
其它的set-*-coding-system我都去掉了
回复 支持 反对

使用道具 举报

发表于 2006-10-16 23:43:25 | 显示全部楼层
忘了说了,我是cvs版的emacs
参见此帖http://www.linuxsir.cn/bbs/showthread.php?t=270475
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表