complete-computing-environment/yasnippets.org

30 lines
817 B
Org Mode

:PROPERTIES:
:ID: cce/yasnippets
:ROAM_ALIASES: Yasnippet
:END:
#+TITLE: Smart Snippet Templates with Yasnippet
#+filetags: :Emacs:CCE:Coding:
#+PROPERTY: header-args :mkdirp yes :results none
#+PROPERTY: header-args:emacs-lisp :tangle yasnippet.el
#+ARCOLOGY_KEY: cce/yasnippet
#+ARCOLOGY_ALLOW_CRAWL: t
#+ARROYO_EMACS_MODULE: yasnippet
#+ARROYO_MODULE_WANTS: cce/company_code_completion.org
#+ARROYO_MODULE_WANTS: cce/diminish.org
I need to put my =~/.emacs.d/snippets/= in here so that it's reproduceable. but for now, this minimal setup is good enough.
#+begin_src emacs-lisp
(provide 'cce/yasnippet)
(use-package yasnippet-snippets :demand)
(use-package yasnippet
:after company
:diminish
:config
(add-to-list 'company-backends 'company-yasnippet t)
(yas-global-mode))
#+end_src