aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2010-05-13 17:52:20 -0400
committerChong Yidong2010-05-13 17:52:20 -0400
commit2ef3c1449c876f7c9fb327e90c59b6f4df4e4df0 (patch)
tree972f0ace089148f98652bc941cf4b06c3e39942e
parent3b30ccdab30ffa36d4138d7f9b9d4724f29b4352 (diff)
downloademacs-2ef3c1449c876f7c9fb327e90c59b6f4df4e4df0.tar.gz
emacs-2ef3c1449c876f7c9fb327e90c59b6f4df4e4df0.zip
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.
-rw-r--r--lisp/ChangeLog11
-rw-r--r--lisp/textmodes/sgml-mode.el5
-rw-r--r--lisp/textmodes/tex-mode.el5
3 files changed, 21 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 1c640193efd..484ae6529c3 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,14 @@
12010-05-13 Chong Yidong <cyd@stupidchicken.com>
2
3 Add TeX open-block and close-block keybindings to SGML, and vice
4 versa.
5
6 * textmodes/tex-mode.el (tex-mode-map): Bind C-c C-t to
7 latex-open-block and C-c / to latex-close-block.
8
9 * textmodes/sgml-mode.el (sgml-mode-map): Bind C-c C-o to sgml-tag
10 and C-c C-e to sgml-close-tag.
11
12010-05-13 Michael Albinus <michael.albinus@gmx.de> 122010-05-13 Michael Albinus <michael.albinus@gmx.de>
2 13
3 * net/tramp.el (with-progress-reporter): Create reporter object 14 * net/tramp.el (with-progress-reporter): Create reporter object
diff --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgml-mode.el
index b9d52acdeba..6cd4121bd10 100644
--- a/lisp/textmodes/sgml-mode.el
+++ b/lisp/textmodes/sgml-mode.el
@@ -101,6 +101,11 @@ This takes effect when first loading the `sgml-mode' library.")
101 (define-key map "\C-c\^?" 'sgml-delete-tag) 101 (define-key map "\C-c\^?" 'sgml-delete-tag)
102 (define-key map "\C-c?" 'sgml-tag-help) 102 (define-key map "\C-c?" 'sgml-tag-help)
103 (define-key map "\C-c/" 'sgml-close-tag) 103 (define-key map "\C-c/" 'sgml-close-tag)
104
105 ;; Redundant keybindings, for consistency with TeX mode.
106 (define-key map "\C-c\C-o" 'sgml-tag)
107 (define-key map "\C-c\C-e" 'sgml-close-tag)
108
104 (define-key map "\C-c8" 'sgml-name-8bit-mode) 109 (define-key map "\C-c8" 'sgml-name-8bit-mode)
105 (define-key map "\C-c\C-v" 'sgml-validate) 110 (define-key map "\C-c\C-v" 'sgml-validate)
106 (when sgml-quick-keys 111 (when sgml-quick-keys
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el
index 5fc92a92d37..da0c5396f2c 100644
--- a/lisp/textmodes/tex-mode.el
+++ b/lisp/textmodes/tex-mode.el
@@ -808,6 +808,11 @@ END is the position of the first delimiter after \verb."
808 (define-key map "\C-c\C-c" 'tex-compile) 808 (define-key map "\C-c\C-c" 'tex-compile)
809 (define-key map "\C-c\C-i" 'tex-bibtex-file) 809 (define-key map "\C-c\C-i" 'tex-bibtex-file)
810 (define-key map "\C-c\C-o" 'latex-insert-block) 810 (define-key map "\C-c\C-o" 'latex-insert-block)
811
812 ;; Redundant keybindings, for consistency with SGML mode.
813 (define-key map "\C-c\C-t" 'latex-insert-block)
814 (define-key map "\C-c/" 'latex-close-block)
815
811 (define-key map "\C-c\C-e" 'latex-close-block) 816 (define-key map "\C-c\C-e" 'latex-close-block)
812 (define-key map "\C-c\C-u" 'tex-goto-last-unclosed-latex-block) 817 (define-key map "\C-c\C-u" 'tex-goto-last-unclosed-latex-block)
813 (define-key map "\C-c\C-m" 'tex-feed-input) 818 (define-key map "\C-c\C-m" 'tex-feed-input)