Tempel Snippets is an effort on translating YASnippet snippets to the Tempel format,
using tempel-collection as its core implementation (the .el
file).
Some of the earlier snippets were translated using GPT-4O (I got the hang of Tempel’s syntax after some time), and tested and tweaked by me.
I’ll only consider uploading this package when I’m sure that any issues are fixed.
If you want to install it, consider using a source-based package manager, such as elpaca,
or the newer package-vc-install
, included as of Emacs 30+.
Below are use-package
example configurations for Tempel, aswell as different ways of installing this package.
(use-package tempel
:bind
("C-c i s" . tempel-insert)
:ensure t)
(use-package tempel-snippets
:after tempel
:vc (:url "https://github.com/gs-101/tempel-snippets")
:ensure t)
(use-package tempel
:bind
("C-c i s" . tempel-insert)
:ensure t)
(use-package tempel-snippets
:straight (tempel-snippets :host github :repo "gs-101/tempel-snippets")
:after tempel
:ensure t)
(elpaca elpaca-use-package
(elpaca-use-package-mode))
(use-package tempel
:bind
("C-c i s" . tempel-insert)
:ensure t)
(use-package tempel-snippets
:host github :repo "gs-101/tempel-snippets"
:after tempel
:ensure t)
So, how does this package differ from the existing tempel-collection?
- This package is meant to be a plain translation of YASnippet Snippets, not introducing any new snippets
- Template names are based on the original snippet’s keys, so there might be some conflicts with autocompletion
- Manual inseartion is recommended, as is demonstrated on the configuration example
- Since this is directly based on YASnippet Snippets, more modes and snippets are included, since it’s an older project
- I haven’t used YASnippet prior to working on this, so some functionality might differ from the original.
- I don’t have experience with all the modes included, so there might be some issues with the snippets I couldn’t catch.
- Parent snippets such as c-lang-common currently have no implementation.
There’s some issues with indentation, specially in the insertion of brackets.
- Crandel, creator of tempel-collection
- Andrea Crotti, maintainer of YASnippet Snippets
- YASnippet Snippets Contributors
- Austin Bingham, creator of elm-yasnippets
- Troy Brown, creator of gpr-yasnippets
- Mark Karpov, creator of common-lisp-snippets
- Adriano M., creator of awk-yasnippets
- Magnar Sveen, creator of datomic-snippets
- Jaromír Hradílek, maintainer of emacs-docbook-snippets
- Yinghai Zao, creator of elixir-yasnippets
- Yusuke Tsutsumi, creator of go-snippets
- Luke Hoersten, creator of haskell-snippets
- Takayoshi Kimura, maintainer of yasnippet-java-mode
- Ron White, creator of ember-yasnippets
- Noam Postavsky, maintainer of yasnippet-classic-snippets