diff lisp/textmodes/flyspell.el @ 71100:83b8d9f95633

* textmodes/flyspell.el (turn-on-flyspell, turn-off-flyspell): New functions. * textmodes/text-mode.el (text-mode-hook): Use turn-on-flyspell.
author Reiner Steib <Reiner.Steib@gmx.de>
date Tue, 30 May 2006 18:37:15 +0000
parents 1b4ea61692ff
children 6cd2742162f9 a8190f7e546e
line wrap: on
line diff
--- a/lisp/textmodes/flyspell.el	Tue May 30 16:32:09 2006 +0000
+++ b/lisp/textmodes/flyspell.el	Tue May 30 18:37:15 2006 +0000
@@ -486,6 +486,18 @@
       (flyspell-mode-on)
     (flyspell-mode-off)))
 
+;;;###autoload
+(defun turn-on-flyspell ()
+  "Unconditionally turn on Flyspell mode."
+  (flyspell-mode 1))
+
+;;;###autoload
+(defun turn-off-flyspell ()
+  "Unconditionally turn off Flyspell mode."
+  (flyspell-mode -1))
+
+(custom-add-option 'text-mode-hook 'turn-on-flyspell)
+
 ;;*---------------------------------------------------------------------*/
 ;;*    flyspell-buffers ...                                             */
 ;;*    -------------------------------------------------------------    */