unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: Using html-quick-keys with nxml-mode
Date: Thu, 04 Mar 2004 09:32:10 -0700	[thread overview]
Message-ID: <40475A0A.6000000@yahoo.com> (raw)
In-Reply-To: mailman.1053.1078411190.340.help-gnu-emacs@gnu.org

Steffen Glu"ckselig wrote:
 > I am new to emacs and plan to mainly use it for publishing xhtml. I've
 > got the TEI-emacs-package and set up nxml-mode to be associated with
 > html-files (I have not converted to the xhtml-extension yet).  I've
 > noticed in html-mode there is an entry in the menu-bar (HTML) that
 > holds some html-elements associated to hotkeys to place them into the
 > source.
 >
 > I would like to have that menu-entry and the shortcuts available in
 > nxml-mode, too. Is that possible? I've noticed that the entries are
 > defined in sgml-mode.el. Could I link that definition to the
 > nxml-mode?  How so?

Most of the HTML menu-bar commands in sgml-mode.el are defined as
skeletons, so I think they could be used in any other major mode.  It
might be as simple as this:

(require 'sgml-mode)	; for html-mode-map
(define-key nxml-mode-map [menu-bar html]
   (lookup-key html-mode-map [menu-bar html]))

 > Or should I switch back to sgml/html-mode, though my documents are
 > actually xhtml?

I haven't tried it yet, but I suspect nxml-mode is better for XHTML
documents.  You might also want to ask on the emacs-nxml-mode discussion
group: http://groups.yahoo.com/group/emacs-nxml-mode/

-- 
Kevin Rodgers

       reply	other threads:[~2004-03-04 16:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1053.1078411190.340.help-gnu-emacs@gnu.org>
2004-03-04 16:32 ` Kevin Rodgers [this message]
2004-03-11 14:31   ` Using html-quick-keys with nxml-mode Steffen Glückselig
2004-03-04 19:06 ` Stefan Monnier
2004-03-04  8:02 Steffen Glückselig
  -- strict thread matches above, loose matches on Subject: below --
2004-03-03  9:42 Steffen Glückselig

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=40475A0A.6000000@yahoo.com \
    --to=ihs_4664@yahoo.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).