diff emacs/xml-hack.el @ 0:509549c55989

from elsewhere
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Tue, 25 May 2021 13:57:42 -0400
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/emacs/xml-hack.el	Tue May 25 13:57:42 2021 -0400
@@ -0,0 +1,8 @@
+(defun sgml-tag-again ()
+  "Insert another of the tag we're in as sibling"
+  (interactive )
+  (let ((elt (sgml-find-element-of (point))))
+    (sgml-up-element)
+    (sgml-insert-element elt)))
+
+(define-key sgml-mode-map "\C-cn" 'sgml-tag-again)