Move default snippets library to feature/snippets
Removes the +snippets flag from config/default. The default snippets can be disabled by disabling the emacs-snippets package.
This commit is contained in:
parent
85ea30377f
commit
91b76d8437
8 changed files with 32 additions and 28 deletions
|
@ -101,3 +101,22 @@ buggy behavior when <delete> is pressed in an empty field."
|
|||
(if (symbol-value mode)
|
||||
(yas-activate-extra-mode mode)
|
||||
(yas-deactivate-extra-mode mode)))
|
||||
|
||||
|
||||
;;
|
||||
;; Commands
|
||||
|
||||
;;;###autoload
|
||||
(defun +snippets/browse (arg)
|
||||
"TODO"
|
||||
(interactive "P")
|
||||
(doom-project-browse +snippets-dir))
|
||||
|
||||
;;;###autoload
|
||||
(defun +snippets/find-file ()
|
||||
"TODO"
|
||||
(interactive)
|
||||
(if (file-directory-p +snippets-dir)
|
||||
(doom-project-find-file +snippets-dir)
|
||||
(yas-visit-snippet-file)))
|
||||
|
||||
|
|
|
@ -50,3 +50,8 @@
|
|||
|
||||
;; `auto-yasnippet'
|
||||
(setq aya-persist-snippets-dir (concat doom-etc-dir "auto-snippets/"))
|
||||
|
||||
|
||||
;; default snippets library
|
||||
(def-package! emacs-snippets
|
||||
:after yasnippet)
|
||||
|
|
|
@ -4,3 +4,7 @@
|
|||
(package! yasnippet)
|
||||
(package! auto-yasnippet)
|
||||
|
||||
(package! emacs-snippets
|
||||
:recipe (:fetcher github
|
||||
:repo "hlissner/emacs-snippets"
|
||||
:files ("*")))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue