diff --git a/thoom-emacs/.gitignore b/thoom-emacs/.gitignore index 272d414..cf8d6ef 100644 --- a/thoom-emacs/.gitignore +++ b/thoom-emacs/.gitignore @@ -3,5 +3,6 @@ !*.org !*.el !.gitkeep -!modules +!snippets/ +!snippets/** flycheck_init.el \ No newline at end of file diff --git a/thoom-emacs/init.el b/thoom-emacs/init.el index 118731f..3419474 100644 --- a/thoom-emacs/init.el +++ b/thoom-emacs/init.el @@ -406,6 +406,11 @@ (add-hook 'completion-at-point-functions #'cape-dabbrev) (add-hook 'completion-at-point-functions #'cape-file) (add-hook 'completion-at-point-functions #'cape-elisp-block)) +;;;; yasnippet +(use-package yasnippet + :ensure t + :init + (yas-global-mode 1)) ;;; Appearance ;;;; Theme diff --git a/thoom-emacs/snippets/org-mode/src b/thoom-emacs/snippets/org-mode/src new file mode 100644 index 0000000..1774a94 --- /dev/null +++ b/thoom-emacs/snippets/org-mode/src @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: Org Src Block +# key: ,src +# -- +#+BEGIN_SRC $1 +$2 +#+END_SRC \ No newline at end of file