From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: nospam@dev.null (Alexey Pustyntsev) Newsgroups: gmane.emacs.help Subject: Re: Settings in c-offsets-alist ignored ? Date: Thu, 07 Jun 2007 00:04:47 +1100 Message-ID: References: <46655381$0$10200$9b4e6d93@newsspool4.arcor-online.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1181134754 18880 80.91.229.12 (6 Jun 2007 12:59:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 6 Jun 2007 12:59:14 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 06 14:59:13 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Hvv6X-0007f3-A4 for geh-help-gnu-emacs@m.gmane.org; Wed, 06 Jun 2007 14:59:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hvv6W-00054x-Vl for geh-help-gnu-emacs@m.gmane.org; Wed, 06 Jun 2007 08:59:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hvv6J-00052N-0j for help-gnu-emacs@gnu.org; Wed, 06 Jun 2007 08:58:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hvv6D-000521-7u for help-gnu-emacs@gnu.org; Wed, 06 Jun 2007 08:58:58 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hvv6D-00051y-2J for help-gnu-emacs@gnu.org; Wed, 06 Jun 2007 08:58:53 -0400 Original-Received: from [87.242.74.155] (helo=sycore.org) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Hvv6C-0007t7-GN for help-gnu-emacs@gnu.org; Wed, 06 Jun 2007 08:58:52 -0400 Original-Received: by sycore.org (Postfix, from userid 8) id EAB8418599; Wed, 6 Jun 2007 16:58:31 +0400 (MSD) Original-Received: from sycore.org (d3093.ys.dialup.sakhalin.ru [87.251.97.93]) by sycore.org (Postfix) with ESMTP id 9E2CF184EC for ; Wed, 6 Jun 2007 16:58:23 +0400 (MSD) Original-Received: from alexey by sycore.org with local (Exim 4.63) (envelope-from ) id 1HvvBv-0006Rv-GV for help-gnu-emacs@gnu.org; Thu, 07 Jun 2007 00:04:47 +1100 User-Agent: Gnus/5.11 Emacs/22.0.95.1 In-Reply-To: <46655381$0$10200$9b4e6d93@newsspool4.arcor-online.net> (Markus Grunwald's message of "05 Jun 2007 12\:13\:53 GMT") X-detected-kernel: Linux 2.4-2.6 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:44707 Archived-At: Markus Grunwald writes: > Hello, > > I'm using xemacs for years and now I got curious about gnu emacs. I've > already "ported" most of my usual settings, but the cc-mode indentation > doesn't work. > > When editing C++ files (I suspect in cc-mode, the modeline shows "C++" ) > the indentation is not as I like it. So I change c-offsets-alist via the > customisation menu but nothing happens. Is there any special setting that > enables custom offsets or what am I missing ? > > I'm using emacs 21.4a+1-3 from debian stable. > > Thanks for any help ! If this works good, I might convert ;) > > cu > Markus > _______________________________________________ > help-gnu-emacs mailing list > help-gnu-emacs@gnu.org > http://lists.gnu.org/mailman/listinfo/help-gnu-emacs > Hi! What kind of indentation you wish to set? Could you be more specific about it? I may be wrong but I think you should try different C styles first. Go to a customization buffer for C-like languages (M-x customize-group, then enter "C") and play with "C Default Style". For instance, I have set "java" for "Java" and "stroustrup" for "other". Anyway, a concrete example of your code would be helpful to us. -- Rgds Alexey