[Dune] [#2] Common code-formatting
Dune
flyspray at dune-project.org
Mon Aug 29 19:14:50 CEST 2011
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#2 - Common code-formatting
User who did this - Elias Pipping (pipping)
----------
Emacs supports not only file-local variables but also directory-local variables. Allowing emacs to indent e.g. dune-{common,grid,istl,localfunctions} would then require only four(!) separate files.
Each file would have to be placed in a parent directory of all c++ code, thus e.g. the top directory; it would have to go by the name .dir-local.el and its contents would look something like this:
((nil . ((indent-tabs-mode . nil)))
(c++-mode . ((c-basic-offset . 4)
(c-file-style . "gnu"))))
This means that tabs are not used for any files and that in particular, for c++ code, the gnu indentation style of width 4 is used.
----------
More information can be found at the following URL:
http://www.dune-project.org/flyspray/index.php?do=details&task_id=2#comment2653
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
More information about the Dune
mailing list