Install Emacs in CentOS 7

Source: Internet
Author: User

Install Emacs in CentOS 7

I started to get started with linux and used centos 7. I shared some experiment problems in my blog:

  • Install Emacs

If it is just used as an editor, you can download and install it in the installation program of the GNOME desktop application,


As for the use of the Emacs Client, you can download and play the shoes you are interested in.
After Emacs is installed, enter emacs on the terminal to open the editor.

However, if you want to use this editor well, you should install the dependency packages. The whole process is as follows:

1. Dependency packages to be installed:
Yum-y groupinstall "Development Tools"
Yum-y install gtk +-devel gtk2-devel
Yum-y install libXpm-devel
Yum-y install libpng-devel
Yum-y install giflib-devel
Yum-y install libtiff-devel libjpeg-devel
Yum-y install ncurses-devel
Yum-y install gpm-devel kernel-glib-devel kernel-Python
Yum-y install GConf2-devel pkgconfig
Yum-y install libXft-devel

2. download the latest emacs installation package and decompress it at the following link.
Http://ftp.gnu.org/pub/gnu/emacs/
My emacs-24.5

Command to decompress the file:
Tar xvf emacs-24.5.tar.gz

3. Install emacs
Enter the decompressed folder under the root user
Cd emacs-24.5
./Configure-prefix =/usr/local-with-x-toolkit = gtk
Make & make install

After the installation is successful, the following message is displayed:

Make [1]: Leaving directory/root/Downloads/emacs-24.5/leim'
cd lib-src; make maybe-blessmail \
MAKE='make' archlibdir='/usr/local/libexec/emacs/24.5/i686-pc-linux-gnu'
make[1]: Entering directory
/Root/Downloads/emacs-24.5/lib-src'
Make [1]: Nothing to be donemaybe-blessmail'.
make[1]: Leaving directory
/Root/Downloads/emacs-24.5/lib-src'

Enter emacs to write a program to run the program ~

If an error occurs, refer:
Http://www.linuxidc.com/Linux/2015-04/116351.htm

Appendix: Why Emacs and Vim are called two major artifacts
Https://linuxtoy.org/archives/why-emacs-vim-good.html

Related Article

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.