From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Michael Slass Newsgroups: gmane.emacs.help Subject: Re: setting c-offsets-alist variables from "headline"? Date: Fri, 18 Oct 2002 20:19:44 GMT Organization: AT&T Broadband Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: <20020621132626.18534.qmail@web20308.mail.yahoo.com> <3D13537B.6CF03BB8@integrinautics.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1034972655 31325 80.91.224.249 (18 Oct 2002 20:24:15 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 18 Oct 2002 20:24:15 +0000 (UTC) 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 182dfH-00088S-00 for ; Fri, 18 Oct 2002 22:24:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 182dcT-0008KX-00; Fri, 18 Oct 2002 16:21:17 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!wn14feed!wn12feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!rwcrnsc51.ops.asp.att.net.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 29 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-NNTP-Posting-Host: 12.228.27.239 Original-X-Complaints-To: abuse@attbi.com Original-X-Trace: rwcrnsc51.ops.asp.att.net 1034972384 12.228.27.239 (Fri, 18 Oct 2002 20:19:44 GMT) Original-NNTP-Posting-Date: Fri, 18 Oct 2002 20:19:44 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:106189 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:2712 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:2712 Dave Lawrence writes: >Is there a way to set c-offsets-alist on a file-by-file basis >using "headline comments" (or whatever they are called) like this: >/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- >*/ > >For example, is there any was to set defun-block-intro to 1 >(as is done in a .emacs file entry below) using comments in a file? > > (c-offsets-alist . ((arglist-close . c-lineup-arglist) > (substatement-open . 0) > (case-label . 4) > (block-open . 0) > (defun-block-intro . 1) > (knr-argdecl-intro . -))) > >Thanks!!! > > Dave > > Check out the "Local Variables in Files" node of the emacs manual: C-h i m emacs m file variables -- Mike Slass