doomemacs / doomemacs/snippets
Can't undo snippets
- Dominant language
- YASnippet
- Stars
- 313
- Forks
- 98
- PR merge metrics
- No merged PRs in 30d
Description
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 of the snippet as #6 reported using the basic undo function.
I tried prettying ESC and C-g many times followed by many instances of undo, but the problem is that the snippet has created an undo branch point. In order to reverse it, we need to `M-x undo-tree-visualize` and then cursor through until we figure out where we intended to go.
I'm new to doom emacs as of yesterday - I've been using spacemacs with the same yasnippets ofr year (I literally copied over my `snippets` folder into my .doom.d), and in spacemacs I didn't I have problem using undoing.

I spent far too many hours on this trying to diagnose the problem (avoiding grading finals...). Do you any advice about what to try?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the TAB-triggered snippet expansion in Doom Emacs with the copied snippets, then compare the undo behavior with the discussion in issue #6. The existing workaround is M-x undo-tree-visualize; done means a normal undo reverses the expansion without requiring manual navigation through an undo branch.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- emacs
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100