[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs behavior
From: |
Gary |
Subject: |
Re: Emacs behavior |
Date: |
Tue, 4 May 2010 20:03:48 +0200 |
On Tue, May 04, 2010 at 12:44:12AM -0300, VICTOR TARABOLA CORTIANO wrote:
> > Putting something like
> >
> > (setq c-basic-offset 8
> > indent-tabs-mode t)
> >
> > into ~/.emacs may give some of the behavior you're looking for.
> >
> > You can also try
> >
> > (setq c-indentation-style "linux")
> >
>
> Thank you. I removed my old .emacs and put that instead, it
> works almost perfectly. The only issue is:
>
> function()
> {
>
> }
I think you want "bsd" instead of "linux" for the c-indentation-style if
you want the braces to line up (which of course is the only sensible way
to do it *grin*). Try it, anyway.
http://en.wikipedia.org/wiki/Indent_style#Allman_style_.28bsd_in_Emacs.29