From: Michael Slass <miknrene@drizzle.com>
Subject: Re: setting c-offsets-alist variables from "headline"?
Date: Fri, 18 Oct 2002 20:19:44 GMT [thread overview]
Message-ID: <m3ptu7lcp1.fsf@localhost.localdomain> (raw)
In-Reply-To: mailman.1034971655.16649.help-gnu-emacs@gnu.org
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
next prev parent reply other threads:[~2002-10-18 20:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-21 13:26 how to set c-offsets-alist Subhakar K S
2002-06-21 16:25 ` Dave Lawrence
2002-10-18 20:07 ` setting c-offsets-alist variables from "headline"? Dave Lawrence
[not found] ` <mailman.1034971655.16649.help-gnu-emacs@gnu.org>
2002-10-18 20:19 ` Michael Slass [this message]
2002-06-21 17:27 ` how to set c-offsets-alist Chuck Bernard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3ptu7lcp1.fsf@localhost.localdomain \
--to=miknrene@drizzle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).