How To Install elpa-hydra on Debian 12

Learn how to install elpa-hydra on Debian 12 with this tutorial. elpa-hydra is make Emacs bindings that stick around

Introduction

In this tutorial we learn how to install elpa-hydra on Debian 12.

What is elpa-hydra

elpa-hydra is:

This is a package for GNU Emacs that can be used to tie related commands into a family of short bindings with a common prefix - a Hydra. Once you summon your Hydra through the prefixed binding (the body + any one head), all heads can be called in succession with only a short extension. Hydra can be vanished with any binding that isn’t the Hydra’s head (and that binding will call a proper command too). This makes the Hydra very seamless, it’s like a minor mode that disables itself automagically.

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

sudo apt-get -y install elpa-hydra

Install elpa-hydra Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install elpa-hydra

Install elpa-hydra 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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install elpa-hydra

How To Uninstall elpa-hydra on Debian 12

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

sudo apt-get remove elpa-hydra

Uninstall elpa-hydra And Its Dependencies

To uninstall elpa-hydra and its dependencies that are no longer needed by Debian 12, we can use the command below:

sudo apt-get -y autoremove elpa-hydra

Remove elpa-hydra Configurations and Data

To remove elpa-hydra configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge elpa-hydra

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

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

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

Dependencies

elpa-hydra have the following dependencies:

References

Summary

In this tutorial we learn how to install elpa-hydra package on Debian 12 using different package management tools: apt, apt-get and aptitude.