ADD Yasnippet hook to prog- and org-mode

This commit is contained in:
Laurens Miers 2024-09-19 22:46:14 +02:00
parent 0482e48c7f
commit ee7073ea67

View file

@ -497,14 +497,17 @@ Install and wait for hydra to be available since we are using it in this init.el
)))
#+END_SRC
** Yasnippet
#+BEGIN_SRC emacs-lisp
(use-package yasnippet
:ensure t
:hook
(prog-mode . yas-minor-mode)
(org-mode . yas-minor-mode)
:config
(yas-reload-all)
(add-hook 'prog-mode-hook 'yas-minor-mode)
)
#+END_SRC