[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: c-style (and also projectile)
From: |
Robert Pluim |
Subject: |
Re: c-style (and also projectile) |
Date: |
Thu, 05 May 2022 16:39:16 +0200 |
>>>>> On Thu, 5 May 2022 16:25:10 +0200, Luca Ferrari <fluca1978@gmail.com>
>>>>> said:
Luca> Hi all,
Luca> I feel a little dumb here, but is there a way to change on the fly the
Luca> c-style for a buffer? At the moment it seems I cannot find it.
`c-set-style'? Bound to "C-c ." here.
Luca> Also I would like to know if using projectile (or project.el) there is
Luca> a way to set a particular style for a single project.
I know nothing about projectile or project, but you can put stuff like
this in a .dir-locals.el file, eg
;;; Directory Local Variables
;;; For more information see (info "(emacs) Directory Variables")
((c-mode . ((c-file-style . "GNU")
(indent-tabs-mode . t))))
Robert
--