reddit / emacs

How do I get yasnippet to actually load the stored snippets for org-mode?

[deleted] · 2022-03-21 14:16
[deleted]
Hastrack · 2022-03-21 14:41
You didn't provide your config, so not very helpful but I assume you didn't configured the path for snippets correctly. Something like this should work: (add-to-list 'yas-snippet-dirs (expand-file-name "snippets/" user-emacs-directory))
bossbobcat2 · 2022-03-21 15:52
Pertaining to yasnippet my config says (use-package yasnippet) and that's it. After looking over the documentation, I came away thinking that was all I needed to write. Admittedly, I was a bit overwhelmed by what I was reading. I'm trying to utilize your suggestion, thank you.
[deleted] · 2022-03-21 15:58
[deleted]
Hastrack · 2022-03-21 18:45
You can use the global mode instead of using hooks for each mode. `(yas-global-mode)`