How To Install elpa-rainbow-delimiters on Ubuntu 18.04

In this tutorial we learn how to install elpa-rainbow-delimiters on Ubuntu 18.04. elpa-rainbow-delimiters is Emacs mode to colour-code delimiters according to their depth

Introduction

In this tutorial we learn how to install elpa-rainbow-delimiters on Ubuntu 18.04.

What is elpa-rainbow-delimiters

elpa-rainbow-delimiters is:

rainbow-delimiters is a “rainbow parentheses”-like mode which highlights delimiters such as parentheses, brackets or braces according to their depth. Each successive level is highlighted in a different color. This makes it easy to spot matching delimiters, orient yourself in the code, and tell which statements are at a given depth.

Great care has been taken to make this mode fast. You shouldn’t see any change in scrolling or editing speed when it’s on even when working in delimiter-rich languages like Clojure or Emacs Lisp. It can be used with any language.

You can customize the colors rainbow-delimiters uses. The default colors are intentionally subtle; they are unobtrusive enough to make the mode worth looking at even if you usually don’t like rainbow parentheses modes. A number of major color themes such as Zenburn and Solarized have added their own faces for the mode.

There are three methods to install elpa-rainbow-delimiters 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 elpa-rainbow-delimiters Using apt-get

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

sudo apt-get update

After updating apt database, We can install elpa-rainbow-delimiters using apt-get by running the following command:

sudo apt-get -y install elpa-rainbow-delimiters

Install elpa-rainbow-delimiters Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install elpa-rainbow-delimiters using apt by running the following command:

sudo apt -y install elpa-rainbow-delimiters

Install elpa-rainbow-delimiters 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 elpa-rainbow-delimiters using aptitude by running the following command:

sudo aptitude -y install elpa-rainbow-delimiters

How To Uninstall elpa-rainbow-delimiters on Ubuntu 18.04

To uninstall only the elpa-rainbow-delimiters package we can use the following command:

sudo apt-get remove elpa-rainbow-delimiters

Uninstall elpa-rainbow-delimiters And Its Dependencies

To uninstall elpa-rainbow-delimiters and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove elpa-rainbow-delimiters

Remove elpa-rainbow-delimiters Configurations and Data

To remove elpa-rainbow-delimiters configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge elpa-rainbow-delimiters

Remove elpa-rainbow-delimiters configuration, data, and all of its dependencies

We can use the following command to remove elpa-rainbow-delimiters configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge elpa-rainbow-delimiters

References

Summary

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