[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Indentation varies for .cc and .cpp
From: |
Sam Peterson |
Subject: |
Re: Indentation varies for .cc and .cpp |
Date: |
11 Oct 2006 04:41:06 -0700 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 |
"Eric Lilja" <mindcooler@gmail.com> writes:
> Eric Lilja skrev:
>
> Sorry for this shameless bump, but do anyone have any ideas at all?
> Since it's for a large number of students I would really like to fix
> this so they can use .cc or .cpp and still get proper indentation. We
> run solaris at the labs and as I mentioned emacs is version 21.4.1. I
> dont see this problem with the same .emacs file on my laptop running a
> recent cvs checkout of emacs.
(add-hook c-mode-common-hook
(lambda ()
(c-set-offset 'substatement-open 0)
(c-set-offset 'defun-open 0)))
--
Sam Peterson
skpeterson AT nospam ucdavis.edu
"if programmers were paid to remove code instead of adding it,
software would be much better" -- unknown
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Indentation varies for .cc and .cpp,
Sam Peterson <=