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:
Henrik Lissner 2018-11-02 11:29:58 -04:00
parent 85ea30377f
commit 91b76d8437
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
8 changed files with 32 additions and 28 deletions

View file

@ -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)))