Mercurial > emacs
changeset 96970:4ad1ee2a678c
(enriched-mode-map): Bind C-a and C-j via key remapping, not directly.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Thu, 24 Jul 2008 05:46:33 +0000 |
parents | f733ebf7bc82 |
children | 8a07ea5be91d |
files | lisp/textmodes/enriched.el |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/textmodes/enriched.el Thu Jul 24 05:46:12 2008 +0000 +++ b/lisp/textmodes/enriched.el Thu Jul 24 05:46:33 2008 +0000 @@ -251,9 +251,10 @@ (cons (cons 'enriched-mode enriched-mode-map) minor-mode-map-alist))) -(define-key enriched-mode-map "\C-a" 'beginning-of-line-text) +(define-key enriched-mode-map [remap move-beginning-of-line] 'beginning-of-line-text) (define-key enriched-mode-map "\C-m" 'reindent-then-newline-and-indent) -(define-key enriched-mode-map "\C-j" 'reindent-then-newline-and-indent) +(define-key enriched-mode-map + [remap newline-and-indent] 'reindent-then-newline-and-indent) (define-key enriched-mode-map "\M-j" 'facemenu-justification-menu) (define-key enriched-mode-map "\M-S" 'set-justification-center) (define-key enriched-mode-map "\C-x\t" 'increase-left-margin)