unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Dave Lawrence <dgl@integrinautics.com>
Subject: setting c-offsets-alist variables from "headline"?
Date: Fri, 18 Oct 2002 13:07:22 -0700	[thread overview]
Message-ID: <3DB069FA.F8698138@integrinautics.com> (raw)
In-Reply-To: 3D13537B.6CF03BB8@integrinautics.com

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

  reply	other threads:[~2002-10-18 20:07 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   ` Dave Lawrence [this message]
     [not found]   ` <mailman.1034971655.16649.help-gnu-emacs@gnu.org>
2002-10-18 20:19     ` setting c-offsets-alist variables from "headline"? Michael Slass
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=3DB069FA.F8698138@integrinautics.com \
    --to=dgl@integrinautics.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).