summary refs log tree commit diff
path: root/emacs/custom/fcuny-conf.el
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2021-10-26 18:43:16 -0700
committerFranck Cuny <franck@fcuny.net>2021-10-26 18:43:16 -0700
commit0c819c14940d9321c994925d90512421a7662ae1 (patch)
tree261d1b9eaea431da50e3deeffd71aba015d55c17 /emacs/custom/fcuny-conf.el
parentemacs: disable mouse-overs for the modeline (diff)
downloademacs.d-0c819c14940d9321c994925d90512421a7662ae1.tar.gz
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.
Diffstat (limited to 'emacs/custom/fcuny-conf.el')
-rw-r--r--emacs/custom/fcuny-conf.el4
1 files changed, 3 insertions, 1 deletions
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)