Re: xemacs qyestion
On Wed, Jul 15, 2009 at 12:54:04AM -0600, lee wrote:
> (setq auto-mode-alist
> (append
> '(("/tmp/mutt-cat-.*" . post-mode))
> auto-mode-alist))
you could also do:
(add-to-list 'auto-mode-alist '("mutt-cat-.*" . post-mode))
> in init.el for xemacs to automaticaly turn on the post-mode when
> writing mails with mutt.
>
> How do I make it so that flyspell-mode is also turned on
> automatically?
by putting it in a hook that is run when post-mode is run. normally, a major
mode will have such a hook, simply called <major-mode>-hook, i.e. in the case of
post-mode it should be post-mode-hook. so:
(add-hook 'post-mode-hook 'turn-on-flyspell)
should *probably* do it. (but check the documentation for flyspell-mode to find
out what the best way is to turn it on. i don't use it so i don't know...)
> I'm guessing that the flyspell-mode is not a mode despite it appears
> to be one,
it is, it's just not a major mode but a minor mode.
> which probably is why I can't make it turn on
> automatically. And if it's not a mode, it shouldn't be called mode.
you haven't described what you've tried to do to turn it on, so no-one can say
what you might have done wrong...
(BTW, i think your question would be better asked on an emacs news group or
mailing list.)
HTH
--
Joost Kremers
Life has its moments