.emacs.d

My Emacs configuration files.
Log | Files | Refs | README

commit b99083eabdcd044e5ee46f7b1cb70c747b4724aa
parent db40b85dc85c56c4a366054a67f9624ea86c9d06
Author: Hugo Soucy <hsoucy@kronostechnologies.com>
Date:   Fri, 20 Jul 2018 09:38:05 -0400

Add partial file fir yas

Diffstat:
Apartials/yasnippets.el | 17+++++++++++++++++
Asnippets/web-mode/svg-use | 8++++++++
2 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/partials/yasnippets.el b/partials/yasnippets.el @@ -0,0 +1,17 @@ +;; +;; YASNIPPETS +;; +(use-package yasnippet + ;; Yet another snippet extension for Emacs + :defer 1 + :diminish yas-minor-mode + :config (yas-global-mode)) + +(use-package yasnippet-snippets + ;; Collection of yasnippet snippets + :after yasnippet + :ensure t + :pin melpa + :config (yasnippet-snippets-initialize)) + +;;; yasnippets.el ends here diff --git a/snippets/web-mode/svg-use b/snippets/web-mode/svg-use @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: SvgUse +# key: svguse +# -- + +<svg class="x__ico"> + <use xlink:href="#ico-"></use> +</svg>