diff lisp/textmodes/sgml-mode.el @ 108541:ce09b34d4a43

Add TeX open-block and close-block keybindings to SGML, and vice versa. * textmodes/tex-mode.el (tex-mode-map): Bind C-c C-t to latex-open-block and C-c / to latex-close-block. * textmodes/sgml-mode.el (sgml-mode-map): Bind C-c C-o to sgml-tag and C-c C-e to sgml-close-tag.
author Chong Yidong <cyd@stupidchicken.com>
date Thu, 13 May 2010 17:52:20 -0400
parents 938f7da4579e
children d835100c3e8b
line wrap: on
line diff
--- a/lisp/textmodes/sgml-mode.el	Thu May 13 22:45:58 2010 +0200
+++ b/lisp/textmodes/sgml-mode.el	Thu May 13 17:52:20 2010 -0400
@@ -101,6 +101,11 @@
     (define-key map "\C-c\^?" 'sgml-delete-tag)
     (define-key map "\C-c?" 'sgml-tag-help)
     (define-key map "\C-c/" 'sgml-close-tag)
+
+    ;; Redundant keybindings, for consistency with TeX mode.
+    (define-key map "\C-c\C-o" 'sgml-tag)
+    (define-key map "\C-c\C-e" 'sgml-close-tag)
+
     (define-key map "\C-c8" 'sgml-name-8bit-mode)
     (define-key map "\C-c\C-v" 'sgml-validate)
     (when sgml-quick-keys