aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/lisp/init-snippet.el
blob: 5c6609ad6dbc3b014cfe0843152de8246e416dd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
(setq yas-snippet-dirs
      '("~/.emacs.d/snippets"
        "~/.emacs.d/local/snippets"))

(when (gx/maybe-require-package 'yasnippet)
  (gx/maybe-require-package 'yasnippet-snippets)
  (require 'yasnippet)
  (yas-reload-all)
  (add-hook 'prog-mode-hook #'yas-minor-mode)
  (add-hook 'org-mode-hook #'yas-minor-mode))

(provide 'init-snippet)