Skip to content

Commit

Permalink
tweak(systemd): use the Company backend as Capf
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Oct 30, 2023
1 parent b04adb1 commit aea6966
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modules/me-tools.el
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,12 @@
:unless (+emacs-features-p 'tree-sitter))

(use-package systemd
:straight (systemd :build (:not compile)))
:straight (systemd :build (:not compile))
:hook (systemd-mode . +systemd-mode-capf-h)
:config
(defun +systemd-mode-capf-h ()
(add-hook 'completion-at-point-functions
(cape-company-to-capf 'systemd-company-backend) -100)))

(use-package pkgbuild-mode
:straight t
Expand Down

0 comments on commit aea6966

Please sign in to comment.