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)