From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Meier Newsgroups: gmane.emacs.help Subject: Re: C-mode-style whitesmith with emacs 21/22 Date: Sun, 17 Feb 2008 18:50:06 +0100 Message-ID: <47b873c9$0$16985$9b622d9e@news.freenet.de> References: <47b52516$0$24080$9b622d9e@news.freenet.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1203307579 30141 80.91.229.12 (18 Feb 2008 04:06:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Feb 2008 04:06:19 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 18 05:06:43 2008 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 1JQxH7-0004U0-Pb for geh-help-gnu-emacs@m.gmane.org; Mon, 18 Feb 2008 05:06:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JQxGd-0001x0-B6 for geh-help-gnu-emacs@m.gmane.org; Sun, 17 Feb 2008 23:06:11 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news2.google.com!news.glorb.com!feeder.erje.net!npeer.de.kpn-eurorings.net!npeer-ng2.kpn.DE!newsfeed.freenet.de!news.freenet.de!not-for-mail User-Agent: Thunderbird 1.5.0.14 (X11/20071210) Original-Newsgroups: gnu.emacs.help In-Reply-To: Original-Lines: 26 Original-NNTP-Posting-Host: 16431e8a.news.freenet.de Original-X-Trace: DXC=iB; oghTi5OKb[85D_BgBjNKZSdekToV0Bnj9b?C`J]GN[<=DD8NLnlDSXITXDRjoiHFLlUM@8VDGI Original-X-Complaints-To: abuse@freenet.de Original-Xref: shelby.stanford.edu gnu.emacs.help:156240 X-Mailman-Approved-At: Sun, 17 Feb 2008 23:05:00 -0500 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:51627 Archived-At: > > I do something like this, > > (defun my-c-mode-common-hook () > (c-set-style "user") > (c-set-offset 'case-label '+) > (c-set-offset 'substatement-open 0) > (setq fill-column 75) > (imenu-add-menubar-index) > (add-hook 'c-mode-hook 'turn-on-cwarn-mode) > ) > (add-hook 'c-mode-common-hook 'my-c-mode-common-hook) > > > You would need to change "user" to "whitesmith", and tweak a little, > but it should not be all that hard to do. > Thank you for your help but I didn't get it working up to now. Your example shows fixed offset and that worked. But I need variable offset according to the preceding line. I found something in that way in the emacs help but I didn't get it working. Lars