From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Dzhus Newsgroups: gmane.emacs.help Subject: Re: C++-mode indentation and how to apply it to all the files under a directory. Date: Thu, 06 Aug 2009 13:04:17 +0400 Organization: albasani.net Message-ID: <878whx8ga6.fsf@sphinx.net.ru> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1249551808 20904 80.91.229.12 (6 Aug 2009 09:43:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Aug 2009 09:43:28 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 06 11:43:21 2009 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 1MYzVJ-0003bJ-46 for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Aug 2009 11:43:21 +0200 Original-Received: from localhost ([127.0.0.1]:36263 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MYzVI-00059e-GO for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Aug 2009 05:43:20 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!news2.glorb.com!newsfeed.straub-nv.de!news.albasani.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 17 Original-X-Trace: news.albasani.net bS/QBmflYR01VcvzoWMY4/fgdw29tXCbyRNa5NpEJzFeFmVQvmti/VF+Az38+BDcDTvvwIZEJQAq5Uj+Ev5uX8S0ALHYiwKZcu9WSiFoVE8uTGhn1r+vffO7ymeBtcFt Original-X-Complaints-To: abuse@albasani.net Original-NNTP-Posting-Date: Thu, 6 Aug 2009 09:06:53 +0000 (UTC) X-User-ID: HlPkmiYhAenkIBRmnds3DghkoNF+bZz/bv6VhyxIEZI= Cancel-Lock: sha1:RfX/I/XOv++g8Q6UTfuwMMQvpYQ= sha1:0My5EgXy2c5wT4lDsLEQ6sWUIF8= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-NNTP-Posting-Host: MptxsfPJ7qb+IrehRGO07D+asf/3iwvH1SrBe07XXD4= Original-Xref: news.stanford.edu gnu.emacs.help:171672 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:66840 Archived-At: ishikawa,chiaki wrote: > Q-1: How to place "{" at the same indention level as "if" and "for" when > "{" is placed on the next line using C++mode. Set your C style to "bsd". You'll still need to adjust offset to 2 (because it's 8 by default for bsd). > Q-2: The second question is how to apply the setting to all c++ files > under a certain directory, but not elsewhere. (info "(emacs) Directory Variables") -- Happy Hacking. http://sphinx.net.ru む