unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Markus Nißl" <mnissl@arcor.de>
Subject: Re: Difference in major mode autoload between 21.3.x and 22.0.x?
Date: Fri, 14 Oct 2005 10:08:25 +0200	[thread overview]
Message-ID: <434f677a$0$10226$9b4e6d93@newsread2.arcor-online.net> (raw)
In-Reply-To: <mailman.11034.1129130655.20277.help-gnu-emacs@gnu.org>

Slawomir Nowaczyk wrote:
> On Wed, 12 Oct 2005 17:15:53 +0200
> Markus Nißl <mnissl@arcor.de> wrote:
> 
> #> Using Emacs 22.0.50.1, xsl-mode is only loaded automatically when 
> #> I create a new xsl file. When I open an existing xsl file, xml 
> #> mode is loaded instead.
> 
> #> Anybody an idea what's wrong?
> 
> From the documentation of auto-mode-alist:
> 
>     See also `interpreter-mode-alist', which detects executable script modes
>     based on the interpreters they specify to run,
>     and `magic-mode-alist', which determines modes based on file contents.
>     
> I suppose you should take a look at magic-mode-alist

Thank you very much for your information. I now see where the 
different behaviour comes from.

By far, I'm no Emacs expert ... so, can you give me a hint in 
which way I have to modify magic-mode-alist so that xsl-mode is 
being started whenever a file with the extension ".xsl" is loaded?

In 21.x, it was a breeze for an elisp novice to copy those two 
lines and to adjust them to my needs.

Thank you very much in advance,
Markus

  parent reply	other threads:[~2005-10-14  8:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-12 15:15 Difference in major mode autoload between 21.3.x and 22.0.x? Markus Nißl
2005-10-12 15:24 ` Slawomir Nowaczyk
     [not found] ` <mailman.11034.1129130655.20277.help-gnu-emacs@gnu.org>
2005-10-14  8:08   ` Markus Nißl [this message]
2005-10-14 12:20     ` Slawomir Nowaczyk
     [not found]     ` <mailman.11338.1129292518.20277.help-gnu-emacs@gnu.org>
2005-10-14 13:02       ` Markus Nißl

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='434f677a$0$10226$9b4e6d93@newsread2.arcor-online.net' \
    --to=mnissl@arcor.de \
    /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).