From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rusi Newsgroups: gmane.emacs.help Subject: Re: C indentation customization Date: Fri, 24 Jul 2015 07:53:07 -0700 (PDT) Message-ID: <9975de97-78b1-4f7f-939e-f3cecd5128f7@googlegroups.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1437749725 31305 80.91.229.3 (24 Jul 2015 14:55:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 Jul 2015 14:55:25 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 24 16:55:20 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZIeNa-0007ZK-Hw for geh-help-gnu-emacs@m.gmane.org; Fri, 24 Jul 2015 16:55:18 +0200 Original-Received: from localhost ([::1]:45530 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZIeNZ-0007il-SU for geh-help-gnu-emacs@m.gmane.org; Fri, 24 Jul 2015 10:55:17 -0400 X-Received: by 10.13.226.213 with SMTP id l204mr14396187ywe.19.1437749587982; Fri, 24 Jul 2015 07:53:07 -0700 (PDT) X-Received: by 10.50.171.200 with SMTP id aw8mr102278igc.6.1437749587952; Fri, 24 Jul 2015 07:53:07 -0700 (PDT) Original-Path: usenet.stanford.edu!69no1682272qgl.1!news-out.google.com!o13ni935igw.0!nntp.google.com!pg9no3643396igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=117.195.54.185; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui Original-NNTP-Posting-Host: 117.195.54.185 User-Agent: G2/1.0 Injection-Date: Fri, 24 Jul 2015 14:53:07 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:213682 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:105968 Archived-At: On Friday, July 24, 2015 at 7:54:41 PM UTC+5:30, Rusi wrote: > http://emacswiki.org/emacs/IndentingC > seems to say that doing > > (setq c-default-style "linux" > c-basic-offset 4) > > will indent like this: > > if(foo) > { > bar++; > } > > ie '{' is not indented, contents is 4 space indented. > > Likewise setting to bsd > as described https://en.wikipedia.org/wiki/Indent_style#Allman_style > seems to say that the '{' wont be indented > > None of these work; ie the '{' is always indented. Evidently restarting emacs makes it work [ie these bindings need to be in effect before CC-mode is loaded(?)]