On 03/08/01, 09:42:49AM +1100, Robert Martinovic wrote:

>  Hello,

>  I know that there are mutt users using emacs as their editor. I
>  would like to know how to set line length at 72 chars in my
>  .emacs

>  It infuriates many to have messages longer that 72 chars to a
>  line


One can use post.el v.1.6.3.10. This sets up post mode for mail
and news when emacs is invoked. Once that has been done one can
set up a line length peculiar to mail messages. For example:


;; --------------------------------------------------------------
;; Set fill to 65 (default) columns post-mode, but 70 in 
;; text/related modes
(defun my-post-mode-setup ()
  (setq fill-column 65))
(add-hook 'post-mode-hook 'my-post-mode-setup)
(defun my-text-mode-setup ()
  (setq fill-column 70))
(add-hook 'text-mode-hook 'my-text-mode-setup)
;; --------------------------------------------------------------


Hope this helps.

Many regards,

 Richard Mahoney


-- 
------------------------ Richard Mahoney -------------------------
78 Jeffreys Rd                                      +64-3-351-5831
Christchurch                                           New Zealand
--------------- mailto:[EMAIL PROTECTED] ----------------

Reply via email to