From: Yuan Fu <casouri@gmail.com>
To: Daniel Colascione <dancol@dancol.org>
Cc: emacs-devel@gnu.org
Subject: Re: c-ts-mode style customization
Date: Wed, 22 Mar 2023 16:58:07 -0700 [thread overview]
Message-ID: <45CB19FB-4D80-4C71-8083-D836F51DFB49@gmail.com> (raw)
In-Reply-To: <87355wu4hn.fsf@dancol.org>
> On Mar 22, 2023, at 8:53 AM, Daniel Colascione <dancol@dancol.org> wrote:
>
> Shouldn't customization of styles in c-ts-mode look more like cc-mode's
> style machinery? Right now, the closest thing we have to defining a new
> style is add-advice on c-ts-mode--indent-styles, which isn't
> particularly convenient or future-proof. You can't drop a new style in,
> say, .dir-locals.
>
Actually, you can define a custom function, say, c-ts-mode-my-style, and set c-ts-mode-indent-style to the name of it.
Yuan
next prev parent reply other threads:[~2023-03-22 23:58 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-22 15:53 c-ts-mode style customization Daniel Colascione
2023-03-22 16:48 ` Eli Zaretskii
2023-03-22 23:58 ` Yuan Fu [this message]
2023-03-23 0:05 ` Daniel Colascione
2023-03-23 0:20 ` Yuan Fu
2023-03-23 4:55 ` Daniel Colascione
2023-03-23 19:20 ` Yuan Fu
2023-03-23 21:06 ` Daniel Colascione
2023-03-23 23:44 ` Yuan Fu
2023-03-24 6:19 ` Eli Zaretskii
2023-03-24 7:02 ` Yuan Fu
2023-03-24 11:37 ` Eli Zaretskii
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=45CB19FB-4D80-4C71-8083-D836F51DFB49@gmail.com \
--to=casouri@gmail.com \
--cc=dancol@dancol.org \
--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 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).