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.
This commit is contained in:
2022-03-14 11:36:39 +00:00
parent 5704a2a0b6
commit b742c9026f

View File

@@ -14,7 +14,13 @@
(yas-global-mode))
(use-package yasnippet-snippets
:after yasnippet)
: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