From f48334d78d570d92742fb59f80382e4592cc309d Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Wed, 28 Apr 2021 16:41:20 +0200 Subject: [PATCH] [Emacs] Add yasnippets and templates --- .emacs.vanilla/init.el | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.emacs.vanilla/init.el b/.emacs.vanilla/init.el index 549c39d..92942d9 100644 --- a/.emacs.vanilla/init.el +++ b/.emacs.vanilla/init.el @@ -803,6 +803,26 @@ the user can match one and open it." :mode "\\.yml\\'" :mode "\\.yaml\\'") +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Snippets + +(use-package yasnippet + :defer t + :straight (:build t) + :init + (yas-global-mode)) + +(use-package yasnippet-snippets + :after yasnippet + :straight (:build t)) + +(use-package yatemplate + :after yasnippet + :straight (:build t)) + +(use-package ivy-yasnippet + :after (ivy yasnippet) + :straight (:build t)) + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Keybindings ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;