How to install Emacs 25.3.2 in Ubuntu 18.04

To install Emacs 25.3.2 in Ubuntu 18.04

Emacs is an extensible, customizable, self-documenting, real-time display editor. Emacs runs on several operating systems. Emacs and its derivatives are a family of text editors that are characterized by their extensibility. Emacs Lisp gives an extension capability allowing users and developers to write new commands using a dialect of the Lisp programming language with different " modes" , enabling it to be used like an Integrated Development Environment (IDE) for programming languages like Java, C or Python. It contains features such as Content-aware editing modes, Complete built-in documentation, Highly customizable, using Emacs Lisp code or a graphical interface. This tutorial explains the installation procedure of Emacs in Ubuntu 18.04.

Installation

Add the repository of Emacs using PPA

root@linuxhelp1:~# add-apt-repository ppa:kelleyk/emacs
 This repository contains updated `emacs` packages based on stable releases.

The following package series are available:
  - `emacs26`: based on 26.x-series releases.
  - `emacs25`: based on 25.x-series releases.

The `emacs26` packages have `mailutils` and `systemd` support (the two build-time options that are new in `emacs26`) enabled.  The `emacs26` packages for 14.04 have failed to build because not all of the dependencies that are required to enable these options are available.

The `emacs26` packages have xwidgets support.  The `emacs25` packages do not.  If you are interested in xwidgets support in `emacs25`, please send me a note  it would not be hard to update those packages.
.
.
Get:14 http://in.archive.ubuntu.com/ubuntu bionic-updates/main amd64 DEP-11 Metadata [127 kB]
Get:15 http://in.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 48x48 Icons [28.4 kB]
Get:16 http://in.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 64x64 Icons [49.2 kB]
Get:17 http://in.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [120 kB]
Get:18 http://in.archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages [120 kB]
Get:19 http://in.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 DEP-11 Metadata [124 kB]
Get:20 http://in.archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 48x48 Icons [127 kB]
Get:21 http://in.archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 64x64 Icons [205 kB]
Get:22 http://in.archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 DEP-11 Metadata [2,468 B]
Get:23 http://in.archive.ubuntu.com/ubuntu bionic-backports/universe amd64 DEP-11 Metadata [5,096 B]
Fetched 1,555 kB in 5s (286 kB/s)   
Reading package lists... Done

Install the Emacs package using the following command

root@linuxhelp1:~# apt-get install emacs25 -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  emacs25-common gconf-service gconf-service-backend gconf2-common libgconf-2-4 libgif7
  liblockfile-bin liblockfile1 libm17n-0 libotf0 m17n-db
Suggested packages:
  m17n-docs gawk
The following NEW packages will be installed:
.
.
update-alternatives: using /usr/bin/ctags25 to provide /usr/bin/ctags (ctags) in auto mode
update-alternatives: using /usr/bin/ebrowse25 to provide /usr/bin/ebrowse (ebrowse) in auto mode
update-alternatives: using /usr/bin/emacs-25.325 to provide /usr/bin/emacs-25.3 (emacs-25.3) in auto mode
update-alternatives: using /usr/bin/emacs25 to provide /usr/bin/emacs (emacs) in auto mode
update-alternatives: using /usr/bin/emacsclient25 to provide /usr/bin/emacsclient (emacsclient) in auto mode
update-alternatives: using /usr/bin/etags25 to provide /usr/bin/etags (etags) in auto mode
Setting up gconf-service-backend (3.2.6-4ubuntu1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...

Once Installation is done you can access the Emacs from the Menu as shown here

Emacs application

The version of Emacs can be found in Help-> About

With this, the method to install Emacs on Ubuntu 18.04 comes to an end.

Tag : Ubuntu
FAQ
Q
How to install Emacs 25.3.2 in Ubuntu?
A
Run the following command:
# apt-get install emacs25
Q
How do I use a debugger on Emacs?
A
By default, Emacs is compiled with debugging on, and optimizations enabled. The optimizations may interfere with some types of debugging; the debugger may not show clearly where it is, or may not be able to inspect certain variables.
Q
How can I compile Emacs myself?
A
To compile Emacs on Windows, you will need the MinGW port of GCC and Binutils, the MinGW runtime and development environment, and the MSYS suite of tools. For the details, see the file nt/INSTALL in the Emacs source distribution
Q
Where can I download Emacs?
A
You can download Emacs releases from ftp.gnu.org mirrors. They are distributed as compressed tar files, digitally signed by the maintainer who made the release.
The development version of Emacs is available from Savannah, the GNU development site.
Q
What other versions of Emacs run on Windows?
A
Emacs can also be compiled for MSDOS. When run on recent MS Windows, it supports long file names, and uses the Windows clipboard. See the msdos directory in the Emacs sources for building instructions (requires DJGPP).