CVS Emacs23 for ubuntu

Of course command line. Follow me:

sudo apt-get install ssh cvs # cvs client
sudo apt-get install texinfo # for man package
*********************************************
export CVS_RSH="ssh"
cvs -z3 -d:pserver:anonymous@cvs.sv.gnu.org:/cvsroot/emacs co -r emacs-unicode-2 emacs #get source
*********************************************
sudo apt-gt install build-essential
sudo apt-get build-dep emacs
sudo apt-get install xserver-xorg-dev

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

You should use the code:

cvs -z3 -d:pserver:anonym...@$address:/sources/emacs co emacs
e.g.
$address: "cvs.sv.gnu.org" 、"cvs.savannah.gnu.org" , and all

and then

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
sudo apt-get install xorg-dev
sudo apt-get install libncurses5
sudo apt-get install libncurses5-dev # env of compiling

*********************************************
./configure --prefix=/usr --with-x-toolkit=gtk --with-xft #make sure in your emacs
make bootstrap
sudo make install
************************************************
Or,use .emacs

(create-fontset-from-fontset-spec
"-*-courier-medium-R-normal--12-*-*-*-*-*-fontset-mymono,
chinese-gb2312:-*-wenquanyi bitmap song-medium-*-normal--14-*-*-*-*-*-iso10646-1,
chinese-gbk:-*-wenquanyi bitmap song-medium-*-normal--14-*-*-*-*-*-iso10646-1,
chinese-gb18030:-*-wenquanyi bitmap song-medium-*-normal--14-*-*-*-*-*-iso10646-1"
)
(setq default-frame-alist (append '((font . "fontset-mymono")) default-frame-alist))
(set-default-font "fontset-mymono")

Good Luck!

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: