From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: Using html-quick-keys with nxml-mode Date: Thu, 04 Mar 2004 09:32:10 -0700 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <40475A0A.6000000@yahoo.com> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1078694086 23703 80.91.224.253 (7 Mar 2004 21:14:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 7 Mar 2004 21:14:46 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 07 22:14:38 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1B05bZ-00043i-00 for ; Sun, 07 Mar 2004 22:14:37 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B05X9-0004Nm-5D for geh-help-gnu-emacs@m.gmane.org; Sun, 07 Mar 2004 16:10:03 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!170.207.51.80!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 31 Original-NNTP-Posting-Host: 170.207.51.80 Original-X-Trace: news.uni-berlin.de 1078417922 61290797 I 170.207.51.80 ([82742]) User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 X-Accept-Language: en-us Original-Xref: shelby.stanford.edu gnu.emacs.help:121468 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:17449 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:17449 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