LinuxSir.cn,穿越时空的Linuxsir!

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

装完mule-ucs后emacs能支持zh_CN.UTF-8的中文输入和显示了,可启动速度慢啊!

[复制链接]
发表于 2005-11-24 19:37:09 | 显示全部楼层 |阅读模式
装完mule-ucs后emacs能支持zh_CN.UTF-8的中文输入和显示了,可启动速度慢啊!
为了中文问题,我几乎要放弃学习emacs了。
可是启动速度我有点受不了啊。有没有更好的办法?
发表于 2005-11-24 20:48:32 | 显示全部楼层
用 emacs22 吧, 直接支持 unicode
回复 支持 反对

使用道具 举报

发表于 2005-11-24 21:13:46 | 显示全部楼层
换个源,utsc的uo源,里面有emacs-unicode-snapshot-gtk,属于unicode分支,并用gtk界面。
回复 支持 反对

使用道具 举报

发表于 2005-11-25 07:35:10 | 显示全部楼层
Debian官方的unstable已经包含
emacs-snapshot-gtk
使用gtk2界面,直接支持utf-8,但是至少在我这有如下问题:
系统locale设为utf-8时,emacs无法输入中文(fcitx和scim都不行),尽管打开gb312或utf-8编码的中文都没问题。
解决办法,使用如下脚本运行emacs
#!/bin/bash
export LC_CTYPE=zh_CN.GBK
/usr/bin/emacs-snapshot-gtk $1
这样emacs可以完美的支持utf-8,gb2312的文件内容显示和输入。
然而,据我个人测试只有scim完全没有问题,fcitx在自己使用utf-8 locale启动而emacs使用export LC_CTYPE=zh_CN.GBK启动时则依然无法输入中文。
回复 支持 反对

使用道具 举报

发表于 2005-11-25 08:14:48 | 显示全部楼层
我装的就是sid里的emacs-snapshot-gtk,可以在utf8下输入中文,下面是我的locale和.emacs
locale:
LANG=en_US.UTF-8
LC_CTYPE=zh_CN.UTF-8
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

.emacs:
(custom-set-variables
  ;; custom-set-variables was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
'(backward-delete-char-untabify-method (quote hungry))
'(c-basic-offset 4)
'(column-number-mode t)
'(current-language-environment "UTF-8")
'(global-font-lock-mode t nil (font-core))
'(kill-read-only-ok t)
'(mouse-wheel-scroll-amount (quote (1 ((shift) . 1) ((control)))))
'(mouse-yank-at-point t)
'(show-paren-mode t)
'(transient-mark-mode t))
(custom-set-faces
  ;; custom-set-faces was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
)
回复 支持 反对

使用道具 举报

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

本版积分规则

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