logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: PSGML contrasted with nxml-mode: msg#00015

Subject: Re: PSGML contrasted with nxml-mode
On May 17 2004, at 21:51 Uhr, DuCharme, Bob (LNG-CHO) wrote:

> I still miss Ctrl+Enter to split the current element

I did, too.  A lot.  Here's my ugly hack.
The fun part about a proper implementation of this function would be to 
decide where to put what whitespace based on context; I just punted.

(defun cabo:nxml-split-element ()
   (interactive "*")
   (nxml-finish-element)
   (insert "\n<" (xmltok-start-tag-qname) ">")
   (nxml-indent-line))

(define-key nxml-mode-map "\C-c\C-m" 'cabo:nxml-split-element)

Gruesse, Carsten



 
Yahoo! Groups Links

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

<*> To unsubscribe from this group, send an email to:
     emacs-nxml-mode-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/
 




<Prev in Thread] Current Thread [Next in Thread>