aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/lisp/init-snippet.el
diff options
context:
space:
mode:
Diffstat (limited to '.emacs.d/lisp/init-snippet.el')
-rw-r--r--.emacs.d/lisp/init-snippet.el12
1 files changed, 12 insertions, 0 deletions
diff --git a/.emacs.d/lisp/init-snippet.el b/.emacs.d/lisp/init-snippet.el
new file mode 100644
index 0000000..5c6609a
--- /dev/null
+++ b/.emacs.d/lisp/init-snippet.el
@@ -0,0 +1,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)