From 2ec6a8d7bdd89e831b9ffaaeb6f23609b55f5013 Mon Sep 17 00:00:00 2001 From: Jessie Hildebrandt Date: Mon, 19 Dec 2022 20:49:10 -0500 Subject: [PATCH] Set custom yasnippet directory location --- init.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/init.el b/init.el index 3a48bbe..d097068 100644 --- a/init.el +++ b/init.el @@ -1337,11 +1337,14 @@ DOCSTRING is an optional form that is discarded upon expansion." ;; yansippet ;; ---------------------------------- ;; +(defconst user/yasnippet-directory (locate-user-emacs-file "snippet/") "Location of user snippet files.") + (external-package yasnippet "Allows for the definition and automatic expansion of text templates" :custom (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-snippet-dirs user/yasnippet-directory "Set snippet files location") :hook (prog-mode-hook . yas-minor-mode) (text-mode-hook . yas-minor-mode)