mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-13 13:13:35 -05:00
Fixes two issues: 1. Evil users would be left in visual mode after expanding a snippet on a region, making it awkward to insert text. It now switches to insert state. 2. While yasnippet reindent the snippet's contents post-expansion, org's mode-specific indentation (see `org-src-tab-acts-natively`) can throw errors for arbitrary reasons. We don't need smart indentation when expanding snippets, so we turn it off only in this case.