functions.
* textmodes/text-mode.el (text-mode-hook): Use turn-on-flyspell.
+2006-05-30 Reiner Steib <Reiner.Steib@gmx.de>
+
+ * textmodes/flyspell.el (turn-on-flyspell, turn-off-flyspell): New
+ functions.
+
+ * textmodes/text-mode.el (text-mode-hook): Use turn-on-flyspell.
+
2006-05-30 Carsten Dominik <dominik@science.uva.nl>
* textmodes/org.el: (org-agenda-highlight-todo): Make sure regexp
(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 ... */
;;* ------------------------------------------------------------- */
(defcustom text-mode-hook nil
"Normal hook run when entering Text mode and many related modes."
:type 'hook
- :options '(turn-on-auto-fill flyspell-mode)
+ :options '(turn-on-auto-fill turn-on-flyspell)
:group 'data)
(defvar text-mode-variant nil