[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/textmodes/text-mode.el,v
From: |
Juri Linkov |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/textmodes/text-mode.el,v |
Date: |
Mon, 25 Aug 2008 20:31:53 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Changes by: Juri Linkov <jurta> 08/08/25 20:31:53
Index: text-mode.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/textmodes/text-mode.el,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -b -r1.55 -r1.56
--- text-mode.el 6 May 2008 04:33:13 -0000 1.55
+++ text-mode.el 25 Aug 2008 20:31:52 -0000 1.56
@@ -50,8 +50,6 @@
(defvar text-mode-map
(let ((map (make-sparse-keymap)))
(define-key map "\e\t" 'ispell-complete-word)
- (define-key map "\es" 'center-line)
- (define-key map "\eS" 'center-paragraph)
map)
"Keymap for `text-mode'.
Many other modes, such as `mail-mode', `outline-mode' and `indented-text-mode',
@@ -123,6 +121,9 @@
(message "Auto Fill %s in Text modes"
(if enable-mode "enabled" "disabled"))))
+
+(define-key facemenu-keymap "\eS" 'center-paragraph)
+
(defun center-paragraph ()
"Center each nonblank line in the paragraph at or after point.
See `center-line' for more info."
@@ -150,6 +151,8 @@
(center-line))
(forward-line 1)))))
+(define-key facemenu-keymap "\es" 'center-line)
+
(defun center-line (&optional nlines)
"Center the line point is on, within the width specified by `fill-column'.
This means adjusting the indentation so that it equals
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] Changes to emacs/lisp/textmodes/text-mode.el,v,
Juri Linkov <=