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)))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue