How To Install elpa-olivetti on Kali Linux
Introduction
In this tutorial we learn how to install elpa-olivetti on Kali Linux.
What is elpa-olivetti
elpa-olivetti is:
Olivetti, a minor mode for Emacs, displays content soft-wrapped to a comfortable width, centered inside the larger window. The visual effect of this is similar to the sheet of paper in WYSIWYG word-processors such as LibreOffice, and is similar to distraction-limiting software such as FocusWriter, WriteRoom, and various Markdown editors. Olivetti-mode is usually used for writing prose and long documents, but when used for reading it may slightly increase one’s reading speed and one’s ability to recall the material.
Features:
- Exclusively affects buffers for which it has been activated.
- Dynamically manages window margins so that text remains centered.
- Interactive modification of
text-body-widthat any time. - When
olivetti-body-widthis set to an integer, the text area will scale with the size of the font; whereas, when a fraction or float is used, the apparent size of the text area will remain visually proportioned to the size of the window. - Optionally remember the state of visual-line-mode on entry and recall its state on exit. Olivetti enables visual-line-mode by default.
There are three methods to install elpa-olivetti 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-olivetti Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install elpa-olivetti using apt-get by running the following command:
sudo apt-get -y install elpa-olivettiInstall elpa-olivetti Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install elpa-olivetti using apt by running the following command:
sudo apt -y install elpa-olivettiInstall elpa-olivetti 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 updateAfter updating apt database, We can install elpa-olivetti using aptitude by running the following command:
sudo aptitude -y install elpa-olivettiHow To Uninstall elpa-olivetti on Kali Linux
To uninstall only the elpa-olivetti package we can use the following command:
sudo apt-get remove elpa-olivettiUninstall elpa-olivetti And Its Dependencies
To uninstall elpa-olivetti and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove elpa-olivettiRemove elpa-olivetti Configurations and Data
To remove elpa-olivetti configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge elpa-olivettiRemove elpa-olivetti configuration, data, and all of its dependencies
We can use the following command to remove elpa-olivetti configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge elpa-olivettiDependencies
elpa-olivetti have the following dependencies:
References
Summary
In this tutorial we learn how to install elpa-olivetti package on Kali Linux using different package management tools: apt, apt-get and aptitude.