diff options
Diffstat (limited to '.emacs.d')
-rw-r--r-- | .emacs.d/init.el | 1 | ||||
-rw-r--r-- | .emacs.d/lisp/init-snippet.el | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 9f87d7c..f400fc8 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -40,6 +40,7 @@ (require 'init-terminal) (require 'init-misc) (require 'init-godot) +(require 'init-snippet) (require 'init-appearance) (add-hook 'after-init-hook 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) |