unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* c-style configuration based on a project/folder
@ 2022-02-21 15:58 Luca Ferrari
  2022-02-21 16:58 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Luca Ferrari @ 2022-02-21 15:58 UTC (permalink / raw)
  To: help-gnu-emacs

Hi all,
I don't know if this is possible, or better, of course it is possible
using Emacs, but I don't know how.
As per subject: is there a way to define the c-style (indentation,
braces, spaces, ecc.) on a per-project basis? I mean either by root
directory or by projectile (I cannot find anything like that in the
projectile documentation).
Any help or suggestion is appreciated.

Thanks,
Luca



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: c-style configuration based on a project/folder
  2022-02-21 15:58 c-style configuration based on a project/folder Luca Ferrari
@ 2022-02-21 16:58 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2022-02-21 16:58 UTC (permalink / raw)
  To: help-gnu-emacs

> From: Luca Ferrari <fluca1978@gmail.com>
> Date: Mon, 21 Feb 2022 16:58:05 +0100
> 
> Hi all,
> I don't know if this is possible, or better, of course it is possible
> using Emacs, but I don't know how.
> As per subject: is there a way to define the c-style (indentation,
> braces, spaces, ecc.) on a per-project basis? I mean either by root
> directory or by projectile (I cannot find anything like that in the
> projectile documentation).

See the documentation of the .dir-locals.el file, for one way.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-02-21 16:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-21 15:58 c-style configuration based on a project/folder Luca Ferrari
2022-02-21 16:58 ` Eli Zaretskii

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).