Change some add-to-list calls to add-hook calls
This commit is contained in:
parent
427b70f347
commit
a6a712ea99
@ -839,8 +839,7 @@ Return a list of the formatted doc and a summary."
|
|||||||
"Major mode for editing firejail profiles."
|
"Major mode for editing firejail profiles."
|
||||||
:group 'firejail-mode
|
:group 'firejail-mode
|
||||||
:syntax-table firejail-profile-syntax-table
|
:syntax-table firejail-profile-syntax-table
|
||||||
(add-to-list (make-local-variable 'completion-at-point-functions)
|
(add-hook 'completion-at-point-functions #'firejail-profile-capf nil t)
|
||||||
#'firejail-profile-capf)
|
|
||||||
(setq-local font-lock-defaults '(firejail-profile-font-lock-keywords)
|
(setq-local font-lock-defaults '(firejail-profile-font-lock-keywords)
|
||||||
comment-start "#"
|
comment-start "#"
|
||||||
comment-end ""
|
comment-end ""
|
||||||
|
2
init.el
2
init.el
@ -1830,7 +1830,7 @@ otherwise, call `bibtex-find-text'."
|
|||||||
:hook (sh-mode . my/-setup-sh-mode)
|
:hook (sh-mode . my/-setup-sh-mode)
|
||||||
:init
|
:init
|
||||||
(defun my/-setup-sh-mode ()
|
(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
|
;; go mode
|
||||||
(use-package go-mode
|
(use-package go-mode
|
||||||
|
Loading…
x
Reference in New Issue
Block a user