whompmacs/lib/thwap-yas.el

21 lines
426 B
EmacsLisp
Raw Normal View History

(use-package yasnippet
:ensure t
:straight t
:config
(setq yas-snippet-dirs '("~/.emacs.d/snippets")))
;; (yas-global-mode 1))
(use-package yasnippet-snippets
:ensure t
:straight t
:after yasnippet
:config
(yas-reload-all)
(yas-global-mode 1))
;; yasnippet stuff
(define-key thwap-map (kbd "y n") 'yas-new-snippet)
(add-to-list 'thwap-help-lines "C-c t y n : create a new yasnippet")
(provide 'thwap-yas)