From: Chong Yidong Date: Thu, 24 Jul 2008 05:46:33 +0000 (+0000) Subject: (enriched-mode-map): Bind C-a and C-j via key remapping, not directly. X-Git-Tag: emacs-pretest-23.0.90~3926 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bd419dfa0788f5062a2c98ee9871ea2483874fde;p=emacs.git (enriched-mode-map): Bind C-a and C-j via key remapping, not directly. --- 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)