[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: setting c-offsets-alist variables from "headline"?
From: |
Michael Slass |
Subject: |
Re: setting c-offsets-alist variables from "headline"? |
Date: |
Fri, 18 Oct 2002 20:19:44 GMT |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 |
Dave Lawrence <dgl@integrinautics.com> 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 <RET> m file <spc> variables <RET>
--
Mike Slass