<<< Date Index >>>     <<< Thread Index >>>

xemacs, color, mail headers....



Hey folks,

just switched from emacs to xemacs as my mutt mail editor.  this is
great because now I can use gnuserv -nw, that is, attach an existing
xemacs session to the current terminal, so I don't have to wait the 10
seconds or so it takes for emacs to load every time I write a mail...

but I have a couple of problems, namely:

- in general, color isn't working when xemacs is run inside a
terminal.  Not really a mutt question, but if anyone has any
suggestions...

more particularly, when I used emacs, I had this great bit of code in
my .emacs:

(defun axels-mail-mode-hook () (

turn-on-auto-fill) ;;; Auto-Fill is necessary for mails 
(turn-on-font-lock) ;;; Font-Lock is always cool*g* 
(flush-lines "^\\(> \n\\)*> -- \n\\(\n?> .*\\)*") ;;; Kills quoted sigs. 
(not-modified) ;;; We haven't changed the buffer, haven't we? *g* 
(mail-text) ;;; Jumps to the beginning of the mail text 

(setq make-backup-files nil) ;;; No backups necessary. ) 
(or (assoc "mutt-"
auto-mode-alist) 
(setq auto-mode-alist (cons '("mutt-" . mail-mode)
auto-mode-alist))) 
(add-hook 'mail-mode-hook 'axels-mail-mode-hook)
(server-start) 
;;; For use with emacsclient

sorry, got filled up.  stolen from axel's mutt page: 
http://fsinfo.cs.uni-sb.de/~abe/mutt/

Anyway, the great thing about this code is that, in addition to
colorizing mail-mode beautifully, it jumps the cursor down below the
mail headers for editing -- so if I've made a mistake or forgotten
something I can scroll back up to the headers section, but in the
normal circumstance where I just want to start writing I don't have to
press a bunch of arrow keys.  

In xemacs the code doesn't work.  ANyone jhave an alternative
suggestion?  

thanks as always,
matt