Re: [Vala] Emacs vala-mode
- From: Evan Nemerson <evan coeus-group com>
- To: David Gomes <david elementaryos org>
- Cc: vala-list gnome org
- Subject: Re: [Vala] Emacs vala-mode
- Date: Thu, 23 Aug 2012 12:04:43 -0700
On Thu, 2012-08-23 at 19:19 +0100, David Gomes wrote:
Vala's official indentation method is 4 spaces. However, vala-mode on
[citation needed]. The closest thing to an official statement on the
matter that I'm aware of is the valac source code, which uses tabs.
Vala's website is made it so that Emacs indents with tabs. Attached is a
fixed version of that vala-mode.el to make it indent with spaces.
It's really a personal, or per-project, preference. People who want
spaces can use their ~/.emacs to (setq indent-tabs-mode nil) to do so.
I do (I prefer two spaces).
You could also use file variables to set this on a per-file basis, or
directory variables (see
http://www.emacswiki.org/emacs/DirectoryVariables) to set it for an
entire project.
I think it should be replaced on Vala's (live.gnome) website.
I don't think it should be unless you can cite your source for the
"official indentation method" statement, but it /is/ a wiki...
-Evan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]