all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lennart Borgman <lennart.borgman.073@student.lu.se>
Cc: help-gnu-emacs@gnu.org
Subject: Re: nxml-mode autoload?
Date: Sun, 30 Oct 2005 15:38:35 +0100	[thread overview]
Message-ID: <4364DAEB.2020904@student.lu.se> (raw)
In-Reply-To: <87oe57fcd2.fsf@borlap.bornier.net>

Jean Magnan de Bornier wrote:

>Arturius mac Aidan <abysmal@waters.loch> wrote :
>
>  
>
>>These entries are in my .emacs
>>;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
>>;; autoinsert.el
>>;;http://www.linuxgazette.com/issue39/marsden.html
>>
>>(setq auto-mode-alist
>>      (append '(("\\.h$" . c++-mode)
>>                ("\\.cpp\\'" . c++-mode)
>>                ("\\.moc\\'" . c++-mode))
>>              auto-mode-alist))
>>
>>(add-hook 'find-file-hooks 'auto-insert)
>>(setq-default auto-insert-query nil)
>>
>>;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
>>;; www.thaiopensource.com/nxml-mode
>>;; per the ~/.emacs.d/lisp/nxml-mode-20041004/README
>>(load "~/.emacs.d/lisp/nxml-mode-20041004/rng-auto.el")
>>(setq auto-mode-alist
>>      (append '(("\\.xml\\'" . nxml-mode)
>>                ("\\.xsl\\'" . nxml-mode)
>>                ("\\.rng\\'" . nxml-mode)
>>                ("\\.xhtml\\'" . nxml-mode))
>>              auto-mode-alist))
>>;;;;;;;;;;;;;;;;;EOF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
>>
>>
>>The first auto-mode-alist entries (for c++) work as expected.  the ones for
>>nxml-mode do not work.  I can, however, start the mode with `M-x
>>nxml-mode<ret>'. Does anybody know why this is not working?
>>
>>    
>>
>On emacs-wiki you can find this solution:
>
> (fset 'xml-mode 'nxml-mode)
>  
>
On the page http://www.emacswiki.org/cgi-bin/wiki/NxmlMode where you can 
find the solution above you can also find fmode.el which will change the 
relevant variables for mode selection.

  reply	other threads:[~2005-10-30 14:38 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-30  2:40 nxml-mode autoload? Arturius mac Aidan
2005-10-30  8:12 ` Edward O'Connor
2005-10-30 11:55 ` Jean Magnan de Bornier
2005-10-30 14:38   ` Lennart Borgman [this message]
2005-10-31  5:48   ` Arturius mac Aidan
2005-10-31  7:57     ` Lennart Borgman
2005-10-31 17:21     ` Edward O'Connor

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4364DAEB.2020904@student.lu.se \
    --to=lennart.borgman.073@student.lu.se \
    --cc=help-gnu-emacs@gnu.org \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.