How to Install Emacs Text Editor on Ubuntu 20.04

Emacs is a text editor that was created in the 1970s and has been continuously developed ever since. It can be used on Linux, Unix, MS-DOS, and Microsoft Windows operating systems. It is primarily written in the Lisp programming language but is also partially written in C. As one would expect with a program of its age, Emacs has many features which are now found in modern text editors. 

Many of the developers using Ubuntu or any other Linux distribution prefer Emacs as their preferred text and code editor. If you are interested in using Emacs on Ubuntu, then you should learn how to install Emacs Text editor on Ubuntu 20.04. In this post, we are going to share the exact steps that will help you to install the same on your system.

install-emacs-on-ubuntu

Installing Emacs on Ubuntu 20.04

There are two methods to install Emacs on Ubuntu. The first one is through the Terminal Emulator, and the second one is through the Snap package. As Ubuntu comes with the support for Snap packages, we include that too. But first, let’s learn the steps to install Emacs Text Editor on Linux with Command Line Terminal.

 

How to Install Emacs Text Editor on Linux with Terminal?

 

Follow the below steps that will help you to install Emacs on your Ubuntu 20.04 system.

Read Also – How to Intstall Atom Text Editor in Ubuntu 20.04 LTS

  1. First of all, update the package cache through the Terminal emulator on Ubuntu 20.04 by entering the below command in the Terminal.
    sudo apt-get update
    
    
  2. Once the package cache is updated, we need to install Emacs on Ubuntu 20.04, and for that, we need to download and install the Emacs with the following command.
    sudo apt install emacs
    
    
  3. Enter your Sudo Password to let the Terminal complete the installation. The process will consume a few seconds to complete. Please wait till the completion.
  4. Once done, you can open the Emacs on your computer with ease.

Install Emacs on Ubuntu With Snap

Snaps are proprietary software packages that operate similarly to Linux software repositories. The apps are kept in a separate Snap library, where you may install them using the snap command.

Read Also – How to Install Visual Studio Code on Ubuntu 20.04 | VSCode on Ubuntu

Another benefit of utilizing Snaps is that they eliminate dependency issues. Such difficulties include non-compatible program versions, a lack of required resources, or overwritten files as a result of installing another program.

So, if you want to install Emacs using Snaps, follow these steps:

  1. First of all, the Terminal by pressing “Ctrl + Alt + T” key combination on your keyboard.
  2. Now, enter the following command to start the process of installing Emacs on Ubuntu.
    sudo snap install Emacs --classic stable
    
    
  3. You may have to enter the Sudo password to start the installation process. The installation might consume a few seconds, depending on the internet speed.
  4. Once done, you will see the success message. After that, you can easily open Emacs on your Linux computer.

Installing Emacs Through Ubuntu Software Store

If you’re searching for a more graphical approach, don’t worry; we’ve got you covered. This technique makes use of Ubuntu Software, Ubuntu’s own software store.

Read Also – How to Install Code::Block IDE on Ubuntu 20.04 LTS

The Ubuntu Software Center is where you’ll find the most popular apps. The majority of applications available as packages and repositories can be found in this store. As it is a GUI-based system, downloading software using this interface is simpler than any of the others.

  1. First of all, open the Ubuntu Software program. Type “Emacs” in the search bar after it has appeared.
  2. From the given list, select the Emacs GUI option.
  3. To install the program, click “Install.”
  4. Enter the Sudo Password on Prompt, and the Ubuntu Software will start installing the same. Within a few seconds, you will have Emacs on Linux.

Final Words

Emacs is one of the best text editor programs, and no one should miss using it. If you are using any other text editor than Emacs, it’s not recommended. In this post, we have tried to share the exact steps that will help you to install Emacs on Ubuntu 20.04. For any other queries regarding the installation, please feel free to let us know through your comments. We’ll be more than happy to assist you.