ag91 / moldable-emacs

Adapting Emacs for moldable development
GNU General Public License v3.0
105 stars 8 forks source link

CodeAsTree does not test minor mode properly #24

Closed alanz closed 2 years ago

alanz commented 2 years ago

The CodeAsTree mold tests for tree-sitter-mode with

(seq-contains-p minor-mode-list 'tree-sitter-mode)

But this checks for the availability of the mode, not if it is active in the current buffer.

See https://stackoverflow.com/questions/10088168/how-to-check-whether-a-minor-mode-e-g-flymake-mode-is-on