From mboxrd@z Thu Jan 1 00:00:00 1970 From: chrisw@rice.edu (Christopher Warrington) Date: Fri, 07 Nov 2008 16:03:06 -0600 Subject: [sup-talk] Can't get emacs to open in flyspell-mode In-Reply-To: <1226009080-sup-663@sgoldmanlinux.tower-research.com> Message-ID: "Steve Goldman" @ 2008-11-6 4:07 PM: > I set my editor in config.yaml to: > > emacs -f flyspell-mode -nw +8 > > This command works correctly from the command line, but when sup opens > emacs for composing, it uses -nw and +8 correctly but does not use > flyspell-mode. Anyone have any luck with this? I set my editor to be emacsclient and added this to my .emacs: ; disable longlines-mode for e-mail ; mail-mode runs text-mode first. (add-to-list 'auto-mode-alist '("sup\\.\\(compose\\|forward\\|reply\\|resume\\)-mode$" . mail-mode)) (add-hook 'mail-mode-hook (function (lambda () (longlines-mode 0) (auto-fill-mode 1)))) Using emacsclient keeps one copy of emacs open, but each invocation of emacsclient opens a new buffer with the given file. I always used sup while using a windowing environment at the same time. http://www.emacswiki.org/emacs-en/EmacsClient Even if you don't use a windowing environment, the mail-mode modification should work. It will also give you some nice features like quote highlighting while editing (assuming font-lock is on). -- Christopher Warrington