]> git.eshelyaron.com Git - emacs.git/commitdiff
Add TeX open-block and close-block keybindings to SGML, and vice versa.
authorChong Yidong <cyd@stupidchicken.com>
Thu, 13 May 2010 21:52:20 +0000 (17:52 -0400)
committerChong Yidong <cyd@stupidchicken.com>
Thu, 13 May 2010 21:52:20 +0000 (17:52 -0400)
* 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.

lisp/ChangeLog
lisp/textmodes/sgml-mode.el
lisp/textmodes/tex-mode.el

index 1c640193efd3d3985f8849b2cd626c6154517f61..484ae6529c3ca48db71b002ad9da527e5c3d43d2 100644 (file)
@@ -1,3 +1,14 @@
+2010-05-13  Chong Yidong  <cyd@stupidchicken.com>
+
+       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.
+
 2010-05-13  Michael Albinus  <michael.albinus@gmx.de>
 
        * net/tramp.el (with-progress-reporter): Create reporter object
index b9d52acdebab46c92429ea9d98f20d196a6b6064..6cd4121bd1009f71ade933b33088983b7449a3d0 100644 (file)
@@ -101,6 +101,11 @@ This takes effect when first loading the `sgml-mode' library.")
     (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
index 5fc92a92d37abd8a416817269c6a6c148e8f4b7f..da0c5396f2cd8d54d871011b08cb369719471b0e 100644 (file)
@@ -808,6 +808,11 @@ END is the position of the first delimiter after \verb."
     (define-key map "\C-c\C-c" 'tex-compile)
     (define-key map "\C-c\C-i" 'tex-bibtex-file)
     (define-key map "\C-c\C-o" 'latex-insert-block)
+
+    ;; Redundant keybindings, for consistency with SGML mode.
+    (define-key map "\C-c\C-t" 'latex-insert-block)
+    (define-key map "\C-c/" 'latex-close-block)
+
     (define-key map "\C-c\C-e" 'latex-close-block)
     (define-key map "\C-c\C-u" 'tex-goto-last-unclosed-latex-block)
     (define-key map "\C-c\C-m" 'tex-feed-input)