Show
Ignore:
Timestamp:
04/03/07 08:27:30 (22 months ago)
Author:
docwhat
Message:

mutt mode

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/packages/emacs-base/.emacs.d/common/filetypes.el

    r182 r187  
    2626(add-to-list 'auto-mode-alist '("/_" . sh-mode)) 
    2727 
     28;; Mutt mode hooks - from http://fsinfo.cs.uni-sb.de/~abe/mutt/ 
     29(defun mutt-mode-hook ()  
     30  (turn-on-auto-fill) ;;; Auto-Fill is necessary for mails  
     31  (turn-on-font-lock) ;;; Font-Lock is always cool *g*  
     32  (flush-lines "^\\(> \n\\)*> -- \n\\(\n?> .*\\)*") ;;; Kills quoted sigs. 
     33  (not-modified)      ;;; We haven't changed the buffer, haven't we? *g*  
     34  (mail-text)         ;;; Jumps to the beginning of the mail text  
     35  (setq make-backup-files nil) ;;; No backups necessary. 
     36  ) 
     37(or (assoc "mutt-" auto-mode-alist) 
     38    (setq auto-mode-alist (cons '("mutt-" . mail-mode) auto-mode-alist))) 
     39(add-hook 'mail-mode-hook 'mutt-mode-hook)