diff --git a/elisp/firejail-mode.el b/elisp/firejail-mode.el index c80bbb9..7f163a7 100644 --- a/elisp/firejail-mode.el +++ b/elisp/firejail-mode.el @@ -839,8 +839,7 @@ Return a list of the formatted doc and a summary." "Major mode for editing firejail profiles." :group 'firejail-mode :syntax-table firejail-profile-syntax-table - (add-to-list (make-local-variable 'completion-at-point-functions) - #'firejail-profile-capf) + (add-hook 'completion-at-point-functions #'firejail-profile-capf nil t) (setq-local font-lock-defaults '(firejail-profile-font-lock-keywords) comment-start "#" comment-end "" diff --git a/init.el b/init.el index 1330b74..c9dcda8 100644 --- a/init.el +++ b/init.el @@ -1830,7 +1830,7 @@ otherwise, call `bibtex-find-text'." :hook (sh-mode . my/-setup-sh-mode) :init (defun my/-setup-sh-mode () - (add-to-list 'completion-at-point-functions #'cape-file))) + (add-hook 'completion-at-point-functions #'cape-file nil t))) ;; go mode (use-package go-mode