It has come to my attention...
...that Andy Davidson said on Tuesday, Aug 13 2002:
======================================================================
> The problem is that the mail-mode occurs, but the auto-fill-mode does
> not. I am firmly convinced that it did work once. And only once.
>
Does Emacs say anything when it starts up? Something to the effect of
"Symbol's value as function is void"? I'm no elisp expert, but from
looking at this:
======================================================================
> (defun my-mail-mode-hook ()
> (auto-fill-mode)
> )
======================================================================
you might try putting "(interactive)" at the begining of your defun.
Something like this:
(defun my-mail-mode-hook ()
(interactive)
(auto-fill-mode)
)
That usually helps when you need a function to be called from a key
map or a hook.
Also, no offense, but that setup seems ridiculously complicated, try
this instead:
======================================================================
(setq auto-mode-alist (append (list (cons "^\/tmp\/mutt" 'mail-mode))
auto-mode-alist))
(add-hook 'mail-mode-hook 'auto-fill-mode)
======================================================================
For me, I don't even bother with something as complicated, here's my
little bit of magic for my email editing.
(setq default-major-mode 'text-mode);; Default major mode is Text
;; Text Mode hooks
(add-hook 'text-mode-hook
(lambda ()
(setq fill-column 70)
(auto-fill-mode)
(flyspell-mode)))
Cheers.
--
--Sam
UC Davis, California USA