From: Juri Linkov <juri@linkov.net>
To: Yilkal Argaw <yilkalargawworkneh@gmail.com>
Cc: Emacs Devel <emacs-devel@gnu.org>
Subject: Re: outline-minor-mode integration into the new treesitter based major modes
Date: Fri, 23 Dec 2022 09:04:14 +0200 [thread overview]
Message-ID: <86h6xmfy1v.fsf@mail.linkov.net> (raw)
In-Reply-To: <CAJddU=qMvjo_+0FQAwqCB1Y9VL17amct5U5my6EZQuqu=U7Obw@mail.gmail.com> (Yilkal Argaw's message of "Fri, 23 Dec 2022 04:50:42 +0000")
> 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.
next prev parent reply other threads:[~2022-12-23 7:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2022-12-23 8:04 ` Yilkal Argaw
2022-12-23 8:38 ` Theodor Thornhill
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86h6xmfy1v.fsf@mail.linkov.net \
--to=juri@linkov.net \
--cc=emacs-devel@gnu.org \
--cc=yilkalargawworkneh@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).