How To Install elpa-folding on Kali Linux

In this tutorial we learn how to install elpa-folding on Kali Linux. elpa-folding is folding-editor minor mode for Emacs

Introduction

In this tutorial we learn how to install elpa-folding on Kali Linux.

What is elpa-folding

elpa-folding is:

This package provides an Emacs minor mode for folding (hiding) custom regions. It also provides an Isearch interface to the folds. Folds can be nested hierarchically.

Folding-mode is similar to a general-purpose Outline-mode or to Org-mode. It can CLOSE a fold so that only initial special marker and optional fold name/comment are visible, or it can ENTER a fold so that all text outside of the target fold is hidden.

The upstream maintainers of folding-mode do not recommend exclusively relying on folding-mode for code layout and navigation. Hideshow and Imenu are more appropriate for folding code at a per-function() level of granularity. In particular Imenu is more useful for this because it parses function indexes. Folding mode is most useful for dividing code into broad operations and for organising stubs while prototyping.

There are three methods to install elpa-folding on Kali Linux. 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-folding 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-folding using apt-get by running the following command:

sudo apt-get -y install elpa-folding

Install elpa-folding Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install elpa-folding

Install elpa-folding Using aptitude

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

sudo aptitude update

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

sudo aptitude -y install elpa-folding

How To Uninstall elpa-folding on Kali Linux

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

sudo apt-get remove elpa-folding

Uninstall elpa-folding And Its Dependencies

To uninstall elpa-folding and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove elpa-folding

Remove elpa-folding Configurations and Data

To remove elpa-folding configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge elpa-folding

Remove elpa-folding configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge elpa-folding

Dependencies

elpa-folding have the following dependencies:

References

Summary

In this tutorial we learn how to install elpa-folding package on Kali Linux using different package management tools: apt, apt-get and aptitude.