[Dune] [#2] Common code-formatting

Dune dune at dune-project.org
Tue Sep 29 16:30:08 CEST 2009


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 - Jö Fahlke (joe)

----------
OK, here is the mode-line for Emacs:

-*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-

It must be in the first line of a file (there are exception for scripts but they don't apply here) and there may be stuff before or after it (so you can make it a comment with //).

"tab-width: 4" sets a tab-stop every 4 columns
"indent-tabs-mode: nil" prevents emacs from using tabs for indentation in the future
"c-basic-offset: 2" sets the usual indentation depth to 2

These setting can also be made in a specially formatted block at the end of the file, or for all files in a tree via a special file in the root directory.

Does anyone know the equivalent mode-line for vim (or other editors)?
----------

More information can be found at the following URL:
http://www.dune-project.org/flyspray/index.php?do=details&task_id=2#comment1114

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