Set custom yasnippet directory location
This commit is contained in:
parent
f8cedaca9a
commit
2ec6a8d7bd
3
init.el
3
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)
|
||||
|
Loading…
Reference in New Issue
Block a user