Add minor-mode-specific snippets & company-dict dictionaries
This commit is contained in:
parent
cc6dee6c99
commit
22e3baf184
2 changed files with 16 additions and 1 deletions
|
@ -86,7 +86,14 @@
|
|||
|
||||
|
||||
(def-package! company-dict
|
||||
:commands company-dict)
|
||||
:commands company-dict
|
||||
:config
|
||||
;; Project-specific dictionaries
|
||||
(defun +company|enable-project-dicts (mode &rest _)
|
||||
(if (symbol-value mode)
|
||||
(push mode company-dict-minor-mode-list)
|
||||
(setq company-dict-minor-mode-list (delq mode company-dict-minor-mode-list))))
|
||||
(add-hook 'doom-project-hook '+company|enable-project-dicts))
|
||||
|
||||
|
||||
;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue