mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
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.
27 lines
591 B
EmacsLisp
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
|