From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sam Peterson Newsgroups: gmane.emacs.help Subject: Re: Indentation varies for .cc and .cpp Date: 11 Oct 2006 04:41:06 -0700 Organization: University of California, Davis Message-ID: References: <1159342799.793017.283660@m7g2000cwm.googlegroups.com> <1159392631.986082.320580@h48g2000cwc.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1160570543 5704 80.91.229.2 (11 Oct 2006 12:42:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 11 Oct 2006 12:42:23 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 11 14:42:23 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GXdOF-0001Oc-IR for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Oct 2006 14:40:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GXdOF-0006SL-0t for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Oct 2006 08:40:51 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.news.ucla.edu!ucdavis!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Original-NNTP-Posting-Host: lect14.cs.ucdavis.edu Original-X-Trace: skeeter.ucdavis.edu 1160566866 7467 169.237.5.137 (11 Oct 2006 11:41:06 GMT) Original-X-Complaints-To: usenet@ucdavis.edu Original-NNTP-Posting-Date: Wed, 11 Oct 2006 11:41:06 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 Original-Xref: shelby.stanford.edu gnu.emacs.help:142363 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:37984 Archived-At: "Eric Lilja" 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