From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dave Lawrence Newsgroups: gmane.emacs.help Subject: setting c-offsets-alist variables from "headline"? Date: Fri, 18 Oct 2002 13:07:22 -0700 Organization: IntegriNautics Corporation Sender: help-gnu-emacs-admin@gnu.org Message-ID: <3DB069FA.F8698138@integrinautics.com> 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 Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1034971740 27141 80.91.224.249 (18 Oct 2002 20:09:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 18 Oct 2002 20:09:00 +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 182dQY-00073X-00 for ; Fri, 18 Oct 2002 22:08:58 +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 182dPE-0004Kj-00; Fri, 18 Oct 2002 16:07:36 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 182dOL-00046H-00 for help-gnu-emacs@gnu.org; Fri, 18 Oct 2002 16:06:41 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 182dOJ-00045j-00 for help-gnu-emacs@gnu.org; Fri, 18 Oct 2002 16:06:40 -0400 Original-Received: from smtp.integrinautics.com ([204.247.117.11]) by monty-python.gnu.org with esmtp (Exim 4.10) id 182dOI-00045W-00 for help-gnu-emacs@gnu.org; Fri, 18 Oct 2002 16:06:38 -0400 Original-Received: from integrinautics.com (endor.integrinautics.com [192.168.117.115]) by smtp.integrinautics.com (8.10.2/8.10.2) with ESMTP id g9IK6ZI10032 for ; Fri, 18 Oct 2002 13:06:35 -0700 (PDT) X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.4.18-4 i686) X-Accept-Language: en Original-To: emacs help 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:2709 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:2709 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