Fix def-project-type yas-extra-modes race condition
This commit is contained in:
parent
fec754b28a
commit
1155097541
1 changed files with 7 additions and 7 deletions
|
@ -161,6 +161,13 @@ Examples:
|
|||
:lighter ,(concat " " lighter)
|
||||
:keymap (make-sparse-keymap))
|
||||
|
||||
(after! yasnippet
|
||||
(add-hook ',mode-hook-sym
|
||||
(lambda ()
|
||||
(if ,mode
|
||||
(yas-activate-extra-mode ',mode)
|
||||
(yas-deactivate-extra-mode ',mode)))))
|
||||
|
||||
,(when bind `(map! :map ,mode-map ,bind))
|
||||
|
||||
(associate! ,mode
|
||||
|
@ -171,13 +178,6 @@ Examples:
|
|||
:when ,pred)
|
||||
|
||||
(defun ,mode-init-sym ()
|
||||
(after! yasnippet
|
||||
(when (boundp 'yas--extra-modes)
|
||||
(add-hook ',(intern (concat mode-name "-hook"))
|
||||
(lambda ()
|
||||
(if (symbol-value ',mode)
|
||||
(yas-activate-extra-mode ',mode)
|
||||
(yas-deactivate-extra-mode ',mode))))))
|
||||
(after! company-dict
|
||||
(push ',mode company-dict-minor-mode-list))
|
||||
,(when build
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue