Compile emacs23 CVs and support xft Fonts

Source: Internet
Author: User

Emacs is a very good tool. Due to its complicated configuration, he has never dared to learn it. Recently, he planned to learn the basic functions of Linux, because the CVS version has added some new features, so I compiled the CVS version.

1. Download the CVS version code

Sudo apt-Get Install SSH CVS
Export cvs_rsh = "ssh"
CVS-Z3-D: pserver: anonymous@cvs.sv.gnu.org:/cvsroot/EmacsCOEmacs

PS: the Unicode version has been incorporated into the master Emacs version.
If you want to update a CVS version to the latest version later, you only need to execute
CVS Update-


2. Install the compilation environment (if these libraries are not installed, emacs may be opened directly on the terminal without borders, just like VI)

Sudo apt-Get install build-essential
Sudo apt-Get build-dep emacs21
Sudo apt-Get install xserver-Xorg-Dev
Sudo apt-Get install Xorg-Dev
Sudo apt-Get install libncurses5
Sudo apt-Get install libncurses5-dev

Sudo apt-Get install libgtk2.0-Dev

3. Compile Emacs to enable Emacs to support xft fonts. Specify the GTK environment.

./Configure -- With-xft -- With-x
Make Bootstrap


4. Install Emacs

Sudo make install

5. There is a good configuration Article http://forum.ubuntu.org.cn/viewtopic.php? T = 18274

PS: For Emacs packaging,
In ubuntu, package the software into Deb for installation, which is a formal method. If you want to install make install, sometimes it will not work if you want to uninstall it,
It is easy to manage after packaging. You can also share your efforts with others.

Here is a simple method, dh_make, fakeroot, dpkg-buildpackage, which must be installed
CD Emacs
Dh_make-f ../emacs.tar.gz
Modify Debian/rules,

# Add here commands to compile the package.
$ (Make)
Modify
# Add here commands to compile the package.
$ (Make) bootstrap

./Add -- With-xft -- With-X to configure.

Then, you can package dpkg-buildpackage-rfakeroot.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.