Replace :yas-minor-mode with set-yas-minor-mode!
This commit is contained in:
parent
ab9b8d97bc
commit
4d017ae19e
5 changed files with 18 additions and 14 deletions
|
@ -1,16 +1,5 @@
|
|||
;;; feature/snippets/autoload/snippets.el -*- lexical-binding: t; -*-
|
||||
|
||||
;;;###autoload
|
||||
(def-setting! :yas-minor-mode (mode)
|
||||
"Register a minor MODE with yasnippet so it can have its own snippets
|
||||
category, if the folder exists."
|
||||
(let* ((mode (doom-unquote mode))
|
||||
(hookfn (intern (format "+snippets--register-%s" mode))))
|
||||
`(after! yasnippet
|
||||
(fset ',hookfn (lambda () (+snippets|enable-project-modes ',mode)))
|
||||
(add-hook! ,mode #',hookfn))))
|
||||
|
||||
|
||||
;;
|
||||
;; Commands
|
||||
;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue