reddit / emacs

Run ispell on text nodes using tree sitter

erickgnavar · 2022-06-26 22:01
deaddyfreddy · 2022-06-27 11:35
> get-text-node-at-point could be easily replaced with (seq-some (lambda (x) (tree-sitter-node-at-pos x (point) t)) (alist-get major-mode tree-sitter-text-grammar-mapping)) > run-ispell-at-point (when-let ((node (get-text-node-at-point))) (run-ispell-on-node node)) JFYI https://github.com/bbatsov/emacs-lisp-style-guide