From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rusi Newsgroups: gmane.emacs.help Subject: C indentation customization Date: Fri, 24 Jul 2015 07:24:39 -0700 (PDT) Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1437747927 780 80.91.229.3 (24 Jul 2015 14:25:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 Jul 2015 14:25:27 +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:25:22 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 1ZIduZ-0007Kh-3g for geh-help-gnu-emacs@m.gmane.org; Fri, 24 Jul 2015 16:25:19 +0200 Original-Received: from localhost ([::1]:45406 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZIduY-0003xi-7W for geh-help-gnu-emacs@m.gmane.org; Fri, 24 Jul 2015 10:25:18 -0400 X-Received: by 10.107.6.80 with SMTP id 77mr13142979iog.11.1437747880004; Fri, 24 Jul 2015 07:24:40 -0700 (PDT) X-Received: by 10.50.114.38 with SMTP id jd6mr95550igb.11.1437747879948; Fri, 24 Jul 2015 07:24:39 -0700 (PDT) Original-Path: usenet.stanford.edu!pg9no3636096igb.0!news-out.google.com!o13ni944igw.0!nntp.google.com!f3no2275334igg.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help 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:24:39 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:213681 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:105967 Archived-At: 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.