all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Nicolás Ojeda Bär" <n.oje.bar@gmail.com>
To: Dmitry Gutov <dmitry@gutov.dev>
Cc: emacs-devel@gnu.org
Subject: Re: Can this indentation be achieved with treesit-simple-indent-rules?
Date: Tue, 20 Jun 2023 20:45:56 +0200	[thread overview]
Message-ID: <CAPunWhAA9o_8qgZPSuitry==M=M=ZOpQr1Br+v46NFWRcQ8eYg@mail.gmail.com> (raw)
In-Reply-To: <b3137321-dee5-76b9-12a4-b1ced440a527@gutov.dev>

On Tue, Jun 20, 2023 at 6:59 PM Dmitry Gutov <dmitry@gutov.dev> wrote:
>
> See treesit-simple-indent-presets for the full list of predefined ones.
> And if none fit exactly, you can define a custom function with the same
> signature (or several) which can do more advanced calculations,
> lookarounds, etc.

I did some experiments defining ac custom ANCHOR and indeed it looks
like I should be able to cobble something together to achieve what I
want.

Thanks for the pointer!

Cheers,
Nicolas



  reply	other threads:[~2023-06-20 18:45 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-19 19:11 Can this indentation be achieved with treesit-simple-indent-rules? Nicolás Ojeda Bär
2023-06-20  6:12 ` Yuan Fu
2023-06-20 10:16   ` Nicolás Ojeda Bär
2023-06-20 15:34 ` Dmitry Gutov
2023-06-20 16:16   ` Nicolás Ojeda Bär
2023-06-20 16:59     ` Dmitry Gutov
2023-06-20 18:45       ` Nicolás Ojeda Bär [this message]
2023-06-20 21:53     ` Yuan Fu

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAPunWhAA9o_8qgZPSuitry==M=M=ZOpQr1Br+v46NFWRcQ8eYg@mail.gmail.com' \
    --to=n.oje.bar@gmail.com \
    --cc=dmitry@gutov.dev \
    --cc=emacs-devel@gnu.org \
    /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 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.