* outline-minor-mode integration into the new treesitter based major modes
@ 2022-12-23 4:50 Yilkal Argaw
2022-12-23 7:04 ` Juri Linkov
0 siblings, 1 reply; 4+ messages in thread
From: Yilkal Argaw @ 2022-12-23 4:50 UTC (permalink / raw)
To: Emacs Devel
[-- Attachment #1: Type: text/plain, Size: 330 bytes --]
I was experimenting with implementing a treesitter based mode for VHDL and
I wanted to have a proper folding mechanism for the mode. Since I like
outline for folding I was wondering if there is a way to integrate it with
the syntax parsing. Asking here if it can be done and how I might go about
doing it?
Sincerely
Yilkal Argaw
[-- Attachment #2: Type: text/html, Size: 406 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: outline-minor-mode integration into the new treesitter based major modes
2022-12-23 4:50 outline-minor-mode integration into the new treesitter based major modes Yilkal Argaw
@ 2022-12-23 7:04 ` Juri Linkov
2022-12-23 8:04 ` Yilkal Argaw
0 siblings, 1 reply; 4+ messages in thread
From: Juri Linkov @ 2022-12-23 7:04 UTC (permalink / raw)
To: Yilkal Argaw; +Cc: Emacs Devel
> I was experimenting with implementing a treesitter based mode for VHDL and
> I wanted to have a proper folding mechanism for the mode. Since I like
> outline for folding I was wondering if there is a way to integrate it with
> the syntax parsing. Asking here if it can be done and how I might go about
> doing it?
That would be great. And now this is possible to do by using the new
function 'outline-search-function'. You can set it to a function
that uses treesitter to find the next outlines.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: outline-minor-mode integration into the new treesitter based major modes
2022-12-23 7:04 ` Juri Linkov
@ 2022-12-23 8:04 ` Yilkal Argaw
2022-12-23 8:38 ` Theodor Thornhill
0 siblings, 1 reply; 4+ messages in thread
From: Yilkal Argaw @ 2022-12-23 8:04 UTC (permalink / raw)
To: Juri Linkov; +Cc: Emacs Devel
[-- Attachment #1: Type: text/plain, Size: 614 bytes --]
Awesome, thanks!
On Fri, Dec 23, 2022 at 7:04 AM Juri Linkov <juri@linkov.net> wrote:
> > I was experimenting with implementing a treesitter based mode for VHDL
> and
> > I wanted to have a proper folding mechanism for the mode. Since I like
> > outline for folding I was wondering if there is a way to integrate it
> with
> > the syntax parsing. Asking here if it can be done and how I might go
> about
> > doing it?
>
> That would be great. And now this is possible to do by using the new
> function 'outline-search-function'. You can set it to a function
> that uses treesitter to find the next outlines.
>
[-- Attachment #2: Type: text/html, Size: 939 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: outline-minor-mode integration into the new treesitter based major modes
2022-12-23 8:04 ` Yilkal Argaw
@ 2022-12-23 8:38 ` Theodor Thornhill
0 siblings, 0 replies; 4+ messages in thread
From: Theodor Thornhill @ 2022-12-23 8:38 UTC (permalink / raw)
To: Yilkal Argaw, Juri Linkov; +Cc: Emacs Devel
Yilkal Argaw <yilkalargawworkneh@gmail.com> writes:
> Awesome, thanks!
>
> On Fri, Dec 23, 2022 at 7:04 AM Juri Linkov <juri@linkov.net> wrote:
>
>> > I was experimenting with implementing a treesitter based mode for VHDL
>> and
>> > I wanted to have a proper folding mechanism for the mode. Since I like
>> > outline for folding I was wondering if there is a way to integrate it
>> with
>> > the syntax parsing. Asking here if it can be done and how I might go
>> about
>> > doing it?
>>
>> That would be great. And now this is possible to do by using the new
>> function 'outline-search-function'. You can set it to a function
>> that uses treesitter to find the next outlines.
>>
Yeah! I made an experiment some time ago, and IIRC it wasn't really
that involved. It'll be a nice addition, IMO :)
Theo
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-12-23 8:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-23 4:50 outline-minor-mode integration into the new treesitter based major modes Yilkal Argaw
2022-12-23 7:04 ` Juri Linkov
2022-12-23 8:04 ` Yilkal Argaw
2022-12-23 8:38 ` Theodor Thornhill
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.