help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: imenu framework


From: Joel Reicher
Subject: Re: imenu framework
Date: Sun, 28 Jul 2024 16:23:28 +1000
User-agent: Gnus/5.13 (Gnus v5.13)

Heime <heimeborgia@protonmail.com> writes:

imenu is a framework for mode-specific buffer indexes

Does this mean that it can list the function names depending on the programming language mode ?

That's what the language mode should provide, yes, but strictly speaking it depends on the mode.

Do you have a particular mode in mind? Its code can be examined.

For example, java-ts-mode contains

 (setq-local treesit-simple-imenu-settings
             '(("Class" "\\`class_declaration\\'" nil nil)
("Interface" "\\`interface_declaration\\'" nil nil)
               ("Enum" "\\`record_declaration\\'" nil nil)
               ("Method" "\\`method_declaration\\'" nil nil)))

(and then there is glue in the generic treesitter code)

Cheers,

       - Joel



reply via email to

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