]> git.eshelyaron.com Git - emacs.git/commitdiff
(enriched-mode-map): Bind C-a and C-j via key remapping, not directly.
authorChong Yidong <cyd@stupidchicken.com>
Thu, 24 Jul 2008 05:46:33 +0000 (05:46 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Thu, 24 Jul 2008 05:46:33 +0000 (05:46 +0000)
lisp/textmodes/enriched.el

index 308e6fc0d2660c4e59a6cd26a32f813e52d4bfbf..132d14e2f136a303e599af6aebd5785782a522ed 100644 (file)
@@ -251,9 +251,10 @@ Commands:
          (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)