How To Install emacs-hcl-mode on Fedora 36

In this tutorial we learn how to install emacs-hcl-mode in Fedora 36. emacs-hcl-mode is Emacs major mode of HCL (Hashicorp Configuration Language)

Introduction

In this tutorial we learn how to install emacs-hcl-mode on Fedora 36.

What is emacs-hcl-mode

Emacs major mode of HCL (Hashicorp Configuration Language).

We can use yum or dnf to install emacs-hcl-mode on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install emacs-hcl-mode.

Install emacs-hcl-mode on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install emacs-hcl-mode using dnf by running the following command:

sudo dnf -y install emacs-hcl-mode

Install emacs-hcl-mode on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install emacs-hcl-mode using yum by running the following command:

sudo yum -y install emacs-hcl-mode

How To Uninstall emacs-hcl-mode on Fedora 36

To uninstall only the emacs-hcl-mode package we can use the following command:

sudo dnf remove emacs-hcl-mode

emacs-hcl-mode Package Contents on Fedora 36

/usr/share/doc/emacs-hcl-mode
/usr/share/doc/emacs-hcl-mode/Changes
/usr/share/doc/emacs-hcl-mode/README.md
/usr/share/emacs/site-lisp/hcl-mode
/usr/share/emacs/site-lisp/hcl-mode/hcl-mode.el
/usr/share/emacs/site-lisp/hcl-mode/hcl-mode.elc
/usr/share/emacs/site-lisp/site-start.d/hcl-mode-init.el

References

Summary

In this tutorial we learn how to install emacs-hcl-mode on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).