[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: C++-mode indentation and how to apply it to all the files under a di
From: |
Dmitry Dzhus |
Subject: |
Re: C++-mode indentation and how to apply it to all the files under a directory. |
Date: |
Thu, 06 Aug 2009 13:04:17 +0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) |
ishikawa,chiaki wrote:
> Q-1: How to place "{" at the same indention level as "if" and "for" when
> "{" is placed on the next line using C++mode.
Set your C style to "bsd". You'll still need to adjust offset to 2
(because it's 8 by default for bsd).
> Q-2: The second question is how to apply the setting to all c++ files
> under a certain directory, but not elsewhere.
(info "(emacs) Directory Variables")
--
Happy Hacking.
http://sphinx.net.ru
む
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: C++-mode indentation and how to apply it to all the files under a directory.,
Dmitry Dzhus <=