There are multiple ways to install Emacs on Ubuntu 22.04 Jammy JellyFish Linux using the command terminal and graphical user interface.
GNU Emacs is a programmable text editor suitable for development. It is a very comprehensive and platform-independent editor that can be expanded with its own Lisp dialect (Emacs Lisp). GNU Emacs makes it easier to write source code through syntax highlighting and can be adapted by the user. Since its control is mainly based on keyboard shortcuts, it requires some training in order to be able to use all its possibilities intensively. Thanks to a large number of plugins, the editor can be used in almost all areas. There are, for example, extensions for file management, email and news, IRC, compilations, web surfing, and much more. Furthermore, it can also be used to create text documents based on LaTeX.
Steps to install Emacs text editor on Ubuntu 22.04 LTS Linux
#1st Method using the APT package manager
1. Run system update
Use the system update command to get the latest version of the packages already on your system along with the refreshing of the repository cache.
sudo apt update
2. Install Emacs on Ubuntu 22.04
We don’t need to add any repository manually on our Ubuntu system to download the packages for Emacs. It is already in the default stable base repo of this Linux. Hence, simply run:
sudo apt install emacs
#2nd Method using SNAP
3. Use Snap to install Emacs
On Ubuntu 22.04 LTS we already have SNAP pre-installed. Hence, we can also use it to get the packages instantly to have this Text editor on our system.
sudo snap install emacs --classic
#3rd method use GUI Ubuntu software
4. Emacs GUI or Terminal from Ubuntu Software
Click on the Ubuntu software icon given on the Dock of Ubuntu 22.04. Then click on the Search icon given on the left top side and search for “emacs“. From the results install GUI or Terminal as per your choice.
The text editor can be used with a graphical user interface and without GUI on the Command terminal. To start it go to All Applications and search for Emacs and then select its icon to run the same.
Alternatively, you can run the below-given command in the Terminal to start this Text editor.
emacs # Start with GUI emacs -nw # Start in Terminal, --no-window-system
The configuration of the Emac takes place exclusively in elisp; internal package management is available to install ready-made extensions. You can also save your personal configuration in the ~ / .emacs file or in the ~ / .emacs.d folder .
6. How to update Emacs
Use the appropriate method to keep your Emacs app up to date:
For APT Users:
sudo apt update & sudo apt upgrade
sudo snap refresh emacs
Open Ubuntu software search Emas, open it from the results and click the Update button (will only show if some updates are available for the application).
7. Uninstall or Remove Emacs from Ubuntu 22.04
Here we have shown multiple methods to install Emacs, hence as per the one you have used go for the given commands to remove it as well.
For the APT method:
sudo apt autoremove --purge emacs
For Snap Method:
Those who have used the SNAP to install Emacs can use the given command to remove the same:
sudo snap remove emacs
Again open the Ubuntu Software and there search for Emacs. Open the app as its icon appears and then click on the Bin icon.
⇒ How to install Emacs 28 on Ubuntu 20.04 LTS Focal Fossa
⇒ How to Change file, folder, or app Icons in Gnome Linux
⇒ How To Install Discourse on Ubuntu 22.04 LTS Jammy Linux
⇒ Install Wike Wikipedia Reader on Ubuntu 22.04 or 20.04 LTS