From 0c819c14940d9321c994925d90512421a7662ae1 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Tue, 26 Oct 2021 18:43:16 -0700 Subject: emacs: enable a couple of hooks for systemd-mode Enable `flyspell-prog-mode` in order to get suggestions for spelling errors. Enable `company-mode` to get completion at point for unit and network directives. --- emacs/custom/fcuny-conf.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'emacs/custom/fcuny-conf.el') diff --git a/emacs/custom/fcuny-conf.el b/emacs/custom/fcuny-conf.el index 2909510..a2642cd 100644 --- a/emacs/custom/fcuny-conf.el +++ b/emacs/custom/fcuny-conf.el @@ -29,6 +29,8 @@ (protobuf-mode . flycheck-mode))) (use-package systemd - :ensure t) + :ensure t + :hook ((systemd-mode . flyspell-prog-mode) + (systemd-mode . company-mode))) (provide 'fcuny-conf) -- cgit 1.4.1