Skip to content

fix: Correctly set hooks and remap major modes to ts-modes for editing gears#10

Merged
shackra merged 11 commits intomasterfrom
shackra/fix-editing-gears
Feb 24, 2026
Merged

fix: Correctly set hooks and remap major modes to ts-modes for editing gears#10
shackra merged 11 commits intomasterfrom
shackra/fix-editing-gears

Conversation

@shackra
Copy link
Owner

@shackra shackra commented Feb 24, 2026

The code I implemented to remap major modes and set the *-ts-mode-hook on each editing gear was severely incorrect. major-mode-remap-alist should be set as early as possible, and each tree-sitter major mode should have its hook set regardless of the user choosing to use tree-sitter or not, as setting such variables does not cause Emacs start to fail.

@shackra shackra merged commit 33b56d0 into master Feb 24, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant