How To Install emacs-terraform-mode on Fedora 36
Introduction
In this tutorial we learn how to install emacs-terraform-mode
on Fedora 36.
What is emacs-terraform-mode
Major mode of terraform configuration file. terraform-mode provides syntax highlighting, indentation function and formatting. Format the current buffer with terraform-format-buffer. To always format terraform buffers when saving, use (add-hook ’terraform-mode-hook ’terraform-format-on-save-mode)
We can use yum
or dnf
to install emacs-terraform-mode
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install emacs-terraform-mode.
Install emacs-terraform-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-terraform-mode
using dnf
by running the following command:
sudo dnf -y install emacs-terraform-mode
Install emacs-terraform-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-terraform-mode
using yum
by running the following command:
sudo yum -y install emacs-terraform-mode
How To Uninstall emacs-terraform-mode on Fedora 36
To uninstall only the emacs-terraform-mode
package we can use the following command:
sudo dnf remove emacs-terraform-mode
emacs-terraform-mode Package Contents on Fedora 36
/usr/share/doc/emacs-terraform-mode
/usr/share/doc/emacs-terraform-mode/Changes
/usr/share/doc/emacs-terraform-mode/README.md
/usr/share/emacs/site-lisp/site-start.d/terraform-mode-init.el
/usr/share/emacs/site-lisp/terraform-mode
/usr/share/emacs/site-lisp/terraform-mode/terraform-mode.el
/usr/share/emacs/site-lisp/terraform-mode/terraform-mode.elc
References
Summary
In this tutorial we learn how to install emacs-terraform-mode
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).