add systemd-mode company backend buffer locally

This commit is contained in:
stardiviner 2019-09-25 13:33:02 +08:00 committed by Mark Oteiza
parent c6e06dfa93
commit a9f82b1f8b

View File

@ -407,7 +407,7 @@ Key bindings:
(set-keymap-parent systemd-mode-map nil) (set-keymap-parent systemd-mode-map nil)
(conf-mode-initialize systemd-comment-start) (conf-mode-initialize systemd-comment-start)
(setq-local auto-fill-inhibit-regexp "^[ \t]*?[^;#]") (setq-local auto-fill-inhibit-regexp "^[ \t]*?[^;#]")
(add-hook 'company-backends #'systemd-company-backend) (add-hook 'company-backends #'systemd-company-backend nil 'local)
(add-hook 'completion-at-point-functions #'systemd-complete-at-point nil t) (add-hook 'completion-at-point-functions #'systemd-complete-at-point nil t)
(add-hook 'font-lock-extend-region-functions (add-hook 'font-lock-extend-region-functions
'systemd-font-lock-extend-region nil t) 'systemd-font-lock-extend-region nil t)