comparison lisp/textmodes/tex-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 335c3f4127c4
children b10051866f51
comparison
equal deleted inserted replaced
108540:bfc1be04834c 108541:ce09b34d4a43
806 (define-key map "\C-c\C-b" 'tex-buffer) 806 (define-key map "\C-c\C-b" 'tex-buffer)
807 (define-key map "\C-c\C-f" 'tex-file) 807 (define-key map "\C-c\C-f" 'tex-file)
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)
814 (define-key map [(control return)] 'tex-feed-input) 819 (define-key map [(control return)] 'tex-feed-input)
815 (define-key map [menu-bar tex tex-bibtex-file] 820 (define-key map [menu-bar tex tex-bibtex-file]