I created such a snippet
$ cat snippets/diary_template
# -*- mode: snippet -*-
# name: diary template
# key: dt
# condition: t
# --
**** Personal_Notes
**** Personal_Tasks
**** Project_Notes
**** Project_Tasks(base)
set yas-snippet-dirs as
;;yasnippet
(require 'yasnippet)
(setq yas-snippet-dirs
'("~/.doom.d/snippets" ;; personal snippets
))
(yas-global-mode 1) ;;
Reload the config file and activate the yas-minor mode
In the sdiary.org
input dt
and strike dt
. nothing happened.
What's the problem with my operations?
yas-describe-tables
?yas
hasn't indexed the snippet for some reason. Can you try to runyas-reload-all
followed byyas-describe-tables
? It may also be worth trying to use a canonicalized path inyas-snippet-dirs
(i.e., remove the tilde).