From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kai.grossjohann@gmx.net (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.help Subject: Re: newbie help with emacs C style Date: Thu, 01 May 2003 14:04:28 +0200 Organization: University of Duisburg, Germany Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <84llxq6fg3.fsf@lucy.is.informatik.uni-duisburg.de> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1051791139 20910 80.91.224.249 (1 May 2003 12:12:19 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 1 May 2003 12:12:19 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Thu May 01 14:12:18 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19BCvC-0005R7-00 for ; Thu, 01 May 2003 14:12:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19BCtd-0000wR-00 for gnu-help-gnu-emacs@m.gmane.org; Thu, 01 May 2003 08:10:41 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!feed.news.nacamar.de!fu-berlin.de!uni-berlin.de!pd951fdcc.dip.t-dialin.NET!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 15 Original-NNTP-Posting-Host: pd951fdcc.dip.t-dialin.net (217.81.253.204) Original-X-Trace: fu-berlin.de 1051790822 13466055 217.81.253.204 (16 [73968]) In-Reply-To: (Bret Comstock Waldow's message of "Thu, 01 May 2003 00:51:03 GMT") Mail-Copies-To: never User-Agent: Gnus/5.09002 (Oort Gnus v0.20) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:HSy6M68H/JIdYu8JQ73/KJOmQrY= Original-Xref: shelby.stanford.edu gnu.emacs.help:112622 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:9119 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:9119 "Bret Comstock Waldow" writes: > I would like to format my C (and C++ and Java) code like this: Have you read the CC mode info file, yet? It contains information on configuring indentation. The first thing to do is to select a style which does this. When you look for a style, don't look for the indentation offset too much. So if you find something that looks like what you want, except that lines are indented 2 spaces instead of 8, choose that style, then configure c-basic-offset to 8. -- file-error; Data: (Opening input file no such file or directory ~/.signature)