[mew-int 01093] Re: Flyspell in MEW

Tatsuya Kinoshita tats at example.com
Wed Oct 2 20:02:07 JST 2002


On October 2, 2002, [mew-int 01091],
Charles Muller <acmuller at example.com> wrote:

> In between, I tried the following in my ~/.emacs, and it worked. Perhaps
> there is more code than I need here....
> 
> (require 'flyspell)
> (add-hook 'text-mode-hook 'flyspell-mode)
> (setq default-major-mode 'text-mode)
> (setq text-mode-hook
>       '(lambda nil
> 	 (setq fill-column 76)
> 	 (auto-fill-mode 1)
>                                      (flyspell-mode 1)))

You are using "setq text-mode-hook", so the above "add-hook
'text-mode-hook" is useless.  `setq' replaces the previous value
with the new value.

`add-hook' is a recommended way to add a hook function to a
normal hook.  Read "Emacs Lisp Reference Manual" for more
information.

-- 
Tatsuya Kinoshita



More information about the Mew-int mailing list