Files
.emacs.d/modules/text-editing/siren-yasnippet.el
Jim Myhrberg b742c9026f feat(snippets): disable prog-mode snippets from yasnippet-snippets
The prog-mode snippets are very basic, a bit a annoying, as they
contain a couple of single-character snippets which conflict with common
variable names in Go.
2022-03-14 11:58:47 +00:00

27 lines
591 B
EmacsLisp

;;; siren-yasnippet.el --- jimeh's Emacs Siren: yasnippet configuration.
;;; Commentary:
;; Basic configuration for yasnippet.
;;; Code:
(use-package yasnippet
:diminish yas-minor-mode
:hook (emacs-startup . yas-reload-all)
:config
(yas-global-mode))
(use-package yasnippet-snippets
:after yasnippet
:config
(let ((skip-file (expand-file-name "prog-mode/.yas-skip"
yasnippet-snippets-dir)))
(when (not (file-exists-p skip-file))
(make-empty-file skip-file t))))
(provide 'siren-yasnippet)
;;; siren-yasnippet.el ends here