LinuxSir.cn,穿越时空的Linuxsir!

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

UTF-8环境下emacs的设置

[复制链接]
发表于 2005-12-21 18:02:02 | 显示全部楼层 |阅读模式
惭愧,还没有搞定emacs23,只试验了emacs21。

在.emacs中添加如下内容:

;;(require 'mule-ucs)
(require 'un-define)

;; Setup GBK environment
(set-terminal-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)
(set-language-environment 'utf-8)
(setq locale-coding-system 'utf-8)
(setq current-language-environment "UTF-8")

可以这样设置字体:
(set-default-font "-*-simsun-medium-r-normal--12-*-*-*-*-*-*-*")

使用erc的还要在erc设置段落加入:
erc-default-coding-system '(utf-8 . utf-8)

当然前提条件是安装mule-ucs包

效果还不错,呵呵
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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