Commit 8a79905d authored by Chong Yidong's avatar Chong Yidong
Browse files

Bind "C-c ]" to block-closing commands in several modes.

Bind "C-c ]" to ...
* progmodes/f90.el (f90-mode-map): ... f90-insert-end.
* nxml/nxml-mode.el (nxml-mode-map): ... nxml-finish-element.
* textmodes/tex-mode.el (tex-mode-map): ... latex-close-block.
* textmodes/sgml-mode.el (sgml-mode-map): ... sgml-close-tag.
parent 7dfc15df
2010-10-24 Chong Yidong <cyd@stupidchicken.com>
Bind "C-c ]" to ...
* progmodes/f90.el (f90-mode-map): ... f90-insert-end.
* nxml/nxml-mode.el (nxml-mode-map): ... nxml-finish-element.
* textmodes/tex-mode.el (tex-mode-map): ... latex-close-block.
* textmodes/sgml-mode.el (sgml-mode-map): ... sgml-close-tag.
2010-10-23 Glenn Morris <rgm@gnu.org> 2010-10-23 Glenn Morris <rgm@gnu.org>
   
* textmodes/flyspell.el (flyspell-mode): If there was an error, * textmodes/flyspell.el (flyspell-mode): If there was an error,
......
...@@ -404,6 +404,7 @@ reference.") ...@@ -404,6 +404,7 @@ reference.")
(define-key map "\M-}" 'nxml-forward-paragraph) (define-key map "\M-}" 'nxml-forward-paragraph)
(define-key map "\M-h" 'nxml-mark-paragraph) (define-key map "\M-h" 'nxml-mark-paragraph)
(define-key map "\C-c\C-f" 'nxml-finish-element) (define-key map "\C-c\C-f" 'nxml-finish-element)
(define-key map "\C-c]" 'nxml-finish-element)
(define-key map "\C-c/" 'nxml-finish-element) (define-key map "\C-c/" 'nxml-finish-element)
(define-key map "\C-c\C-m" 'nxml-split-element) (define-key map "\C-c\C-m" 'nxml-split-element)
(define-key map "\C-c\C-b" 'nxml-balanced-close-start-tag-block) (define-key map "\C-c\C-b" 'nxml-balanced-close-start-tag-block)
......
...@@ -657,6 +657,7 @@ Can be overridden by the value of `font-lock-maximum-decoration'.") ...@@ -657,6 +657,7 @@ Can be overridden by the value of `font-lock-maximum-decoration'.")
(define-key map "\C-c\C-f" 'f90-fill-region) (define-key map "\C-c\C-f" 'f90-fill-region)
(define-key map "\C-c\C-p" 'f90-previous-statement) (define-key map "\C-c\C-p" 'f90-previous-statement)
(define-key map "\C-c\C-n" 'f90-next-statement) (define-key map "\C-c\C-n" 'f90-next-statement)
(define-key map "\C-c]" 'f90-insert-end)
(define-key map "\C-c\C-w" 'f90-insert-end) (define-key map "\C-c\C-w" 'f90-insert-end)
;; Standard tab binding will call this, and also handle regions. ;; Standard tab binding will call this, and also handle regions.
;;; (define-key map "\t" 'f90-indent-line) ;;; (define-key map "\t" 'f90-indent-line)
......
...@@ -100,6 +100,7 @@ This takes effect when first loading the `sgml-mode' library.") ...@@ -100,6 +100,7 @@ This takes effect when first loading the `sgml-mode' library.")
(define-key map "\C-c\C-d" 'sgml-delete-tag) (define-key map "\C-c\C-d" 'sgml-delete-tag)
(define-key map "\C-c\^?" 'sgml-delete-tag) (define-key map "\C-c\^?" 'sgml-delete-tag)
(define-key map "\C-c?" 'sgml-tag-help) (define-key map "\C-c?" 'sgml-tag-help)
(define-key map "\C-c]" 'sgml-close-tag)
(define-key map "\C-c/" 'sgml-close-tag) (define-key map "\C-c/" 'sgml-close-tag)
;; Redundant keybindings, for consistency with TeX mode. ;; Redundant keybindings, for consistency with TeX mode.
......
...@@ -864,6 +864,7 @@ START is the position of the \\ and DELIM is the delimiter char." ...@@ -864,6 +864,7 @@ START is the position of the \\ and DELIM is the delimiter char."
;; Redundant keybindings, for consistency with SGML mode. ;; Redundant keybindings, for consistency with SGML mode.
(define-key map "\C-c\C-t" 'latex-insert-block) (define-key map "\C-c\C-t" 'latex-insert-block)
(define-key map "\C-c]" 'latex-close-block)
(define-key map "\C-c/" 'latex-close-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-e" 'latex-close-block)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment