How To Install emacs-goodies-el on Ubuntu 18.04

In this tutorial we learn how to install emacs-goodies-el on Ubuntu 18.04. emacs-goodies-el is Miscellaneous add-ons for Emacs

Introduction

In this tutorial we learn how to install emacs-goodies-el on Ubuntu 18.04.

What is emacs-goodies-el

emacs-goodies-el is:

This package contains: align-string - align string components over several lines; all - edit all lines matching a given regexp; apache-mode - major mode for editing Apache configuration files; ascii - ASCII code display for character under point; auto-fill-inhibit - finer grained control over auto-fill-mode; bar-cursor - change your cursor to a bar instead of a block; bm - visible bookmarks in buffers; boxquote - quote texts in nice boxes; browse-huge-tar - browse tar files without reading them into memory; browse-kill-ring - browse, search, modify the kill ring; button-lock - clickable text defined by regular expression; clipper - save strings of data for further use; coffee - now Emacs can even brew coffee; color-theme - changes the colors used within Emacs; csv-mode - major mode for comma-separated value files; ctypes - enhanced Font lock support for custom defined types; dedicated - make a window dedicated to a single buffer; df - display in the mode line space left on devices; diminish - shorten or erase modeline presence of minor modes; dir-locals - provides directory-wide local variables; edit-env - display, edit, delete and add environment variables; egocentric - highlight your name inside emacs buffers; eproject - assign files to projects, programatically ff-paths - $PATH-like searching in C-x C-f; filladapt - enhances Emacs’s built-in adaptive fill; floatbg - slowly modify background color; framepop - display temporary buffers in a dedicated frame; graphviz-dot-mode.el - mode for the dot-language used by graphviz (att). highlight-beyond-fill-column - highlight lines that are too long; highlight-completion - highlight completions in the minibuffer; highlight-current-line - highlight line where the cursor is; home-end - alternative Home and End commands; htmlize - HTML-ize font-lock buffers; initsplit - split customizations into different files; joc-toggle-buffer - fast switching between two buffers; joc-toggle-case - a set of functions to toggle the case of characters; keydef - a simpler way to define key mappings; keywiz - Emacs key sequence quiz; lcomp - list-completion hacks; maplev - major mode for Maple; map-lines - map a command over lines matching a regexp; marker-visit - navigate through a buffer’s marks in order; matlab - major mode for MatLab dot-m files; minibuf-electric - electric minibuffer behavior from XEmacs; minibuffer-complete-cycle - cycle through the Completions buffer; miniedit - enhanced editing for minibuffer fields; mutt-alias - lookup and insert the expansion of mutt mail aliases; muttrc-mode - major mode for editing Mutt config files; obfusurl - obfuscate an URL; pack-windows - resize all windows to display as much info as possible; perldoc - show help for Perl functions and modules. (Depends on perl-doc); pod-mode - major mode for editing POD files; pp-c-l - display Control-l characters in a pretty way; projects - create project-based meaningful buffer names; prot-buf - protect buffers from accidental killing; protocols - perform lookups in /etc/protocols; quack - enhanced support for editing and running Scheme code; rfcview - view IETF RFCs with readability-improved formatting; services - perform lookups in /etc/services; session - saves settings between Emacs invocations and visits to a file; setnu - setnu-mode, a vi-style line number mode; shell-command - enables tab-completion for shell-command; show-wspace - highlight whitespaces of various kinds; silly-mail - generate bozotic mail headers; slang-mode.el - a major-mode for editing S-Lang scripts; sys-apropos - interface for the *nix apropos command; tabbar - Display a tab bar in the header line; tail - “tail -f” a file or a command from within Emacs; tc - cite text with proper filling; thinks - quote texts in cartoon-like think bubbles; tlc - major mode for editing Target Language Compiler scripts; tld - explain top-level domain names; todoo - major mode for editing TODO files; toggle-option - easily toggle frequently toggled options; twiddle - mode line hacks to keep you awake; under - underline a region with ^ characters; upstart-mode - mode for editing upstart files; xrdb-mode - mode for editing X resource database files.

See /usr/share/doc/emacs-goodies-el/README.Debian.gz for a short description of all files, or the Info node `emacs-goodies-el’ for details.

There are three methods to install emacs-goodies-el on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install emacs-goodies-el Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install emacs-goodies-el using apt-get by running the following command:

sudo apt-get -y install emacs-goodies-el

Install emacs-goodies-el Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install emacs-goodies-el using apt by running the following command:

sudo apt -y install emacs-goodies-el

Install emacs-goodies-el Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install emacs-goodies-el using aptitude by running the following command:

sudo aptitude -y install emacs-goodies-el

How To Uninstall emacs-goodies-el on Ubuntu 18.04

To uninstall only the emacs-goodies-el package we can use the following command:

sudo apt-get remove emacs-goodies-el

Uninstall emacs-goodies-el And Its Dependencies

To uninstall emacs-goodies-el and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove emacs-goodies-el

Remove emacs-goodies-el Configurations and Data

To remove emacs-goodies-el configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge emacs-goodies-el

Remove emacs-goodies-el configuration, data, and all of its dependencies

We can use the following command to remove emacs-goodies-el configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge emacs-goodies-el

References

Summary

In this tutorial we learn how to install emacs-goodies-el package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.