renzmann / treesit-auto

Automatic installation, usage, and fallback for tree-sitter major modes in Emacs 29
GNU General Public License v3.0
369 stars 28 forks source link

No way to undo changes applied by `treesit-auto-apply-remap` #10

Closed renzmann closed 1 year ago

renzmann commented 1 year ago

Related to https://github.com/renzmann/treesit-auto/pull/8, we might consider a global mode that can enable/disable the effects of treesit-auto-apply-remap. Right now it just hacks directly into major-mode-remap-alist. In the case that I want to disable those remaps temporarily, I currently have no way to do so.

renzmann commented 1 year ago

28 added rollbacks to the major-mode-remap-alist and treesit-language-source-alist when exiting global-treesit-auto-mode