[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [SPAM UNSURE] Re: Plug treesit.el into other emacs constructs

From: Stephen Leake
Subject: Re: [SPAM UNSURE] Re: Plug treesit.el into other emacs constructs
Date: Fri, 16 Dec 2022 03:54:57 -0800
User-agent: Gnus/5.13 (Gnus v5.13)

Kévin Le Gouguec <kevin.legouguec@gmail.com> writes:

> Stephen Leake <stephen_leake@stephe-leake.org> writes:
>> ada-mode has something similar; forward-sexp goes to the next labeled
>> keyword. That's more useful than stopping at every little AST node. It
>> relies on markup in the grammar to label the keywords; tree-sitter would
>> need another markup similar to the current indent markup.
> Chiming in since I got bitten by this in ada-mode right now: as someone
> used to mark long_identifiers_with_underscores with C-M-SPC in other
> modes, it's tripping me up that mark-sexp (and sexp movement in general)
> "overshoots" and goes over much bigger expressions in ada-mode.

Sounds like we need an option for this in ada-mode?

My solution to this is to bind C-<right> to (forward-symbol 1), and
C-<left> to (forward-symbol -1), so these keys move over whole

-- Stephe

reply via email to

[Prev in Thread] Current Thread [Next in Thread]