unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "David Vanderschel" <DJV1@Austin.RR.com>
Subject: auto-mode-alist for minor modes?
Date: Thu, 11 Sep 2003 00:23:36 -0500	[thread overview]
Message-ID: <bf2dnXIT7dpSm_2iRTvUqQ@texas.net> (raw)

Though the naming for the auto-mode-alist variable is
neutral, the documentation for auto-mode-alist only
talks about _major_ modes.  I would like to use it to
invoke a _minor_ mode when a file with a given
extension is loaded.  I have tried this, and it seems
to work.  Is there some subtle way I am going to get
myself in trouble doing this?

It seems to me that set-auto-mode does not know
whether the function associated with the extension is
a major mode starter or a minor mode starter.  It is
just going to call it once the buffer is set up.  That
is all I want.  But I know there are numerous
potential 'gotchas' in emacs, so I seek reassurance
or, if necessary, correction.

Regards,
  David V.

             reply	other threads:[~2003-09-11  5:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-11  5:23 David Vanderschel [this message]
2003-09-11  6:58 ` auto-mode-alist for minor modes? Lute Kamstra

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=bf2dnXIT7dpSm_2iRTvUqQ@texas.net \
    --to=djv1@austin.rr.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).