Polarisbancage

Navigation

73days since
最爱的banban生日

164days since
Me

Emacs


1、编译:
export CVS_RSH=”ssh”
cvs -z3 -d:pserver:anonymous@cvs.savannah.gnu.org:/sources/emacs co -r emacs-unicode-2 emacs
./configure --prefix=/usr --enable-font-backend --with-xft --with-freetype --with-x-toolkit=gtk
make bootstrap
sudo make install
If you have some error when you had been run command “make bootstrap”, such as

make[2]: *** No rule to make target
`/home/****/emacs/lisp/org/org-agenda.elc’, needed by
`compile-main’. Stop
This issue was solved by changing the cvs checkout instruction to:
cvs -z3 -d:pserver:anonymous@cvs.savannah.gnu.org:/sources/emacs co emacs

make clear ; make bootstrap ; sudo make install
And then, I’ll make that supporting chinese. Let’s go.

vi /etc/X11/xorg.conf #add FontPath (e.g. simsun)
xlsfonts | grep gb2312 #make sure those fonts being included here
vi ~/.Xresources

add these code in your .Xresources
e.g.
Emacs.Font: fontset-chinese
Emacs.Fontset-0:-*-fixed-medium-r-*-*-14-*-*-*-c-*-fontset-chinese,\
chinese-gb2312:-*-simsun-medium-r-*-*-12-*-*-*-p-*-gb2312.1980-*

xrdb -merge .Xresources