Re: Uses nxhtml-mode in an no-standard extension files

"Reinout van Rees" <[email protected]>
Newsgroups gmane.emacs.nxml.general
Message-ID <[email protected]>
On Fri, Mar 28, 2008 at 11:32 AM, ygneo01 <[email protected]> wrote:
>
>  I'm beginning to use nxhtml-mode and I'm a beginner in emacs too.
>
>  I'd to know how I can use the mode in files with an arbitray extension
>  (such as .ctp, i.e)

"Alt-x nxml-mode" should give you the nxml mode for the current file
that you're visiting.

To do it automatically, put something like the following in your .emacs

(autoload 'nxml-mode "nxml-mode" "XML editing mode." t)
;(load "rng-auto.el")
(setq auto-mode-alist
      (cons '("\\.\\(xml\\|html\\|htm\\|xslt\\|pt\\|cpt\\|zcml\\|xsl\\)\\'"
. nxml-mode)
            auto-mode-alist))


Reinout

-- 
Reinout van Rees ([email protected])
Work: http://zestsoftware.nl/ Blog: http://vanrees.org/weblog/
"I can be googled, therefore I am."

------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/emacs-nxml-mode/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/emacs-nxml-mode/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[email protected] 
    mailto:[email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.