* emacs + mutt > better quoting of emails while replying
@ 2006-01-01 13:53 thomas
2006-01-01 16:22 ` Bill Wohler
[not found] ` <mailman.21046.1136132634.20277.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 5+ messages in thread
From: thomas @ 2006-01-01 13:53 UTC (permalink / raw)
Hello,
I've just installed mutt with emacs as the editor. If I do a reply, I
get the following lines and the cursor is on the second line (the one
with Hello) :
--------------------
On Sun, Jan 01, 2006 at 05:24:26AM -0800, foo wrote:
> Hello!
> Blablablablabla
> Bye
--------------------
I would like emacs to add to blank lines on the top and set the cursor
on the first line, that is :
--------------------
[cursor is here]
On Sun, Jan 01, 2006 at 05:24:26AM -0800, foo wrote:
> Hello!
> Blablablablabla
> Bye
--------------------
How can I do that? So far, my ~/.emacs contains the following lines:
(setq auto-mode-alist (append (list (cons "^\/tmp\/mutt" 'mail-mode))
auto-mode-alist))
(add-hook 'mail-mode-hook 'my-mail-mode-hook)
(defun my-mail-mode-hook ()
(turn-on-font-lock)
(auto-fill-mode)
(mail-text)
Thanks for your answer and happy new year!
++
Thomas
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: emacs + mutt > better quoting of emails while replying
2006-01-01 13:53 emacs + mutt > better quoting of emails while replying thomas
@ 2006-01-01 16:22 ` Bill Wohler
2006-01-01 18:22 ` thomas
[not found] ` <mailman.21046.1136132634.20277.help-gnu-emacs@gnu.org>
1 sibling, 1 reply; 5+ messages in thread
From: Bill Wohler @ 2006-01-01 16:22 UTC (permalink / raw)
thomas <thomas.bsd@gmail.com> writes:
> Hello,
> I've just installed mutt with emacs as the editor. If I do a reply, I
> get the following lines and the cursor is on the second line (the one
> with Hello) :
> --------------------
> On Sun, Jan 01, 2006 at 05:24:26AM -0800, foo wrote:
>> Hello!
>> Blablablablabla
>> Bye
> --------------------
>
> I would like emacs to add to blank lines on the top and set the cursor
> on the first line, that is :
> --------------------
> [cursor is here]
>
> On Sun, Jan 01, 2006 at 05:24:26AM -0800, foo wrote:
>> Hello!
>> Blablablablabla
>> Bye
> --------------------
>
> How can I do that? So far, my ~/.emacs contains the following lines:
Add the following to the appropriate hook:
(when (looking-at ">")
(previous-line 1)
(save-excursion
(insert "\n\n")))
If you're correct that the cursor in a reply is always at the ">"
character, then the first test will succeed. You may have to modify
this as necessary.
I must try to discourage you from replying in this fashion. It's a bad
habit started by Outbreak. As you can see by my reply, it is easier to
see the threads and context when using a common type of replying
technique shared by dozens of mail user agents (rather than a
monopolistic style).
--
Bill Wohler <wohler@newt.com> http://www.newt.com/wohler/ GnuPG ID:610BD9AD
Maintainer of comp.mail.mh FAQ and MH-E. Vote Libertarian!
If you're passed on the right, you're in the wrong lane.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: emacs + mutt > better quoting of emails while replying
2006-01-01 16:22 ` Bill Wohler
@ 2006-01-01 18:22 ` thomas
0 siblings, 0 replies; 5+ messages in thread
From: thomas @ 2006-01-01 18:22 UTC (permalink / raw)
On 1/1/06, Bill Wohler <wohler@newt.com> wrote:
> I must try to discourage you from replying in this fashion. It's a bad
> habit started by Outbreak. As you can see by my reply, it is easier to
> see the threads and context when using a common type of replying
> technique shared by dozens of mail user agents (rather than a
> monopolistic style).
I got the point, no more top-posting for me.
Thanks for your advice
^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <mailman.21046.1136132634.20277.help-gnu-emacs@gnu.org>]
end of thread, other threads:[~2006-01-08 13:19 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-01 13:53 emacs + mutt > better quoting of emails while replying thomas
2006-01-01 16:22 ` Bill Wohler
2006-01-01 18:22 ` thomas
[not found] ` <mailman.21046.1136132634.20277.help-gnu-emacs@gnu.org>
[not found] ` <41qeu7F1ffkomU2@individual.net>
2006-01-01 20:19 ` Bill Wohler
2006-01-08 13:19 ` thomas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).