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
|
@ -766,9 +766,9 @@
|
|||
(:desc "snippets" :prefix "s"
|
||||
:desc "New snippet" :n "n" #'yas-new-snippet
|
||||
:desc "Insert snippet" :nv "i" #'yas-insert-snippet
|
||||
:desc "Find snippet" :n "s" #'+default/find-in-snippets
|
||||
:desc "Find snippet for mode" :n "S" #'+default/browse-snippets
|
||||
:desc "Find global snippet" :n "/" #'yas-visit-snippet-file
|
||||
:desc "Jump to mode snippet" :n "/" #'yas-visit-snippet-file
|
||||
:desc "Jump to snippet" :n "s" #'+snippets/find-file
|
||||
:desc "Browse snippets" :n "S" #'+snippets/browse
|
||||
:desc "Reload snippets" :n "r" #'yas-reload-all))
|
||||
|
||||
(:desc "toggle" :prefix "t"
|
||||
|
|
|
@ -34,13 +34,6 @@
|
|||
(defun +default/find-in-notes ()
|
||||
(interactive) (doom-project-find-file org-directory))
|
||||
|
||||
;;;###autoload
|
||||
(defun +default/browse-snippets ()
|
||||
(interactive) (doom-project-browse +snippets-dir))
|
||||
;;;###autoload
|
||||
(defun +default/find-in-snippets ()
|
||||
(interactive) (doom-project-find-file +snippets-dir))
|
||||
|
||||
;;;###autoload
|
||||
(defun +default/find-in-config ()
|
||||
"Open a file somewhere in `doom-private-dir' via a fuzzy filename search."
|
||||
|
|
|
@ -3,14 +3,6 @@
|
|||
(if (featurep! +bindings) (load! "+bindings"))
|
||||
|
||||
|
||||
;;
|
||||
;; Packages
|
||||
|
||||
(def-package! emacs-snippets
|
||||
:if (featurep! +snippets)
|
||||
:after yasnippet)
|
||||
|
||||
|
||||
;;
|
||||
;; Config
|
||||
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
;; -*- no-byte-compile: t; -*-
|
||||
;;; config/default/packages.el
|
||||
|
||||
(when (featurep! +snippets)
|
||||
(package! emacs-snippets
|
||||
:recipe (:fetcher github
|
||||
:repo "hlissner/emacs-snippets"
|
||||
:files ("*"))))
|
Loading…
Add table
Add a link
Reference in a new issue