二月 27, 2008

Apply customized default face to new frame

试用了带unicode和multi-tty的cvs emacs,感觉很不错,唯一的遗憾是后来创建的frame并没有使用自定义的face,而是使用了缺省的face。这应该是个bug,解决方法是在.emacs里加上这么一句:

(set-face-attribute 'default t :family "Liberation Mono" :height 170)

需要注意的是字体高度一定要是10的整数倍,不然显示新的frame会非常慢,先要闪好多次。

二月 20, 2008

Enjoy emacs multitty and unicode

unicode branch is merged to trunk之后,我们终于不需要在multitty和unicode支持之间做出艰难的选择了。从cvs拿到最新的代码(我的是2月18日的),编译方法如下:

$ cd emacs
$ ./configure --prefix=/usr --with-gtk --enable-font-backend
$ make bootstrap
$ make
$ make tags # optional
$ make install # as root

我在fedora上使用Liberation Mono,在ubuntu上使用DejaVu Sans Mono。字体都相当圆润,刚开始还真不太习惯。:-D