changeset 80629:2862d3b099c5

(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:47:38 +0000
parents 49c76f6173ab
children 9c4d808c7b66
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:47:22 2008 +0000
+++ b/lisp/textmodes/enriched.el	Thu Jul 24 05:47:38 2008 +0000
@@ -253,9 +253,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)