1

Set custom yasnippet directory location

This commit is contained in:
Jessie Hildebrandt 2022-12-19 20:49:10 -05:00
parent f8cedaca9a
commit 2ec6a8d7bd

View File

@ -1337,11 +1337,14 @@ DOCSTRING is an optional form that is discarded upon expansion."
;; yansippet ;; yansippet
;; ---------------------------------- ;; ;; ---------------------------------- ;;
(defconst user/yasnippet-directory (locate-user-emacs-file "snippet/") "Location of user snippet files.")
(external-package yasnippet (external-package yasnippet
"Allows for the definition and automatic expansion of text templates" "Allows for the definition and automatic expansion of text templates"
:custom :custom
(yas-also-indent-empty-lines t "Indent lines in expanded templates even if empty") (yas-also-indent-empty-lines t "Indent lines in expanded templates even if empty")
(yas-also-auto-indent-first-line t "Always indent first line in expanded templates") (yas-also-auto-indent-first-line t "Always indent first line in expanded templates")
(yas-snippet-dirs user/yasnippet-directory "Set snippet files location")
:hook :hook
(prog-mode-hook . yas-minor-mode) (prog-mode-hook . yas-minor-mode)
(text-mode-hook . yas-minor-mode) (text-mode-hook . yas-minor-mode)