[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mutt tips



On 2003-09-09 13:23, Alex Malinovich wrote:

> 2) Is there any way to have mutt pass options to emacs when invoking
> my EDITOR? I'd like to automatically be in mail-mode with auto-fill
> enabled whenever emacs is called from mutt. (if anyone has suggestions
> for better modes to use, please do tell me) Is there a way of having
> mutt tell this to emacs?

This works for me - 

In .muttrc:

   set editor="emacs -nw --no-init-file --load ~nick/.emacs-mail +7:0"

In .emacs-mail:

   ( setq
     auto-mode-alist
     ( cons '("/tmp/mutt.*$" . post-mode) auto-mode-alist )
   )
   (add-hook 'mail-mode-hook 'turn-on-auto-fill)


-- 
Nick



Reply to: