From bd419dfa0788f5062a2c98ee9871ea2483874fde Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Thu, 24 Jul 2008 05:46:33 +0000 Subject: [PATCH] (enriched-mode-map): Bind C-a and C-j via key remapping, not directly. --- lisp/textmodes/enriched.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/textmodes/enriched.el b/lisp/textmodes/enriched.el index 308e6fc0d26..132d14e2f13 100644 --- a/lisp/textmodes/enriched.el +++ b/lisp/textmodes/enriched.el @@ -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) -- 2.39.2