snippets
snippets copied to clipboard
The Doom Emacs snippets library
When using `doom-snippets-expand` to chain snippets ``` # -*- mode: snippet -*- # name: imp # key: imp # uuid: imp # condition: t # -- import `(doom-snippets-expand :uuid "libs")`...
The code in this changeset includes a collection of django `python-mode` and `web-mode` snippets. Each mode has its own readme about the collections: - [python-mode](https://github.com/jsoa/doom-snippets/blob/56af8070f17ed298d5b1085ac8c1f07b743a91e0/python-mode/django/README.org) - [web-mode](https://github.com/jsoa/doom-snippets/blob/56af8070f17ed298d5b1085ac8c1f07b743a91e0/web-mode/django/README.org)
Snippets defined in .doom.d/snippets seem to work fine. However snippets defined using the `yas-define-snippets` function don't seem to be working properly. A minimum example file loaded from `.doom.d/config.el ` is...
This is actually related to the discussion of #6. When I expand a snippet using doom emacs (via TAB), it presents the snippet perfectly, but I can't undo the expansion...
Lately, I was browsing the repo to get a gist of naming conventions. For example, what to name my `class` snippet? `class`? Perhaps `cls`? With a quick search, I realized...
Made the variable names change all at once, theoretically improving efficiency. Edit: Also added "int" before "i", since a for loop requires it.
### What were you expecting? I'm trying adding an attribute snippet which should behave like this: `` ### What actually happened? I instead got this: ```html ``` ### Steps to...
### What were you expecting? Typing `/*` and hitting enter should create a single comment region. ### What actually happened? Typing `/*` causes emacs to automatically append `*/` after the...
### What were you expecting? I was expecting no warnings. ### What actually happened? I got a warning: ```text Multiple snippets with same identity: "try" ``` ### Steps to reproduce...