The Message mode's default quoting is `> ' except for blank and quoted
lines, which get `>'. This is right for blank lines (avoids trailing
spaces), but is wrong for quoted lines. So, hacketty hack, we fix it to
use `> ' for everything and trim off trailing spaces manually.
(setq sendmail-program "~/bin/sendmail-hack")
(setq mail-user-agent 'message-user-agent)
(setq sendmail-program "~/bin/sendmail-hack")
(setq mail-user-agent 'message-user-agent)
-(setq message-signature-separator "^-- \\(\\|\\[mdw\\]\\)$")
+(setq message-signature-separator "^-- \\(\\|\\[mdw\\]\\)$"
+ message-yank-prefix "> "
+ message-yank-cited-prefix "> "
+ message-indent-citation-function '(message-indent-citation
+ mdw-trim-spaces-after-citing))
+
+(defun mdw-trim-spaces-after-citing ()
+ (save-excursion
+ (save-restriction
+ (narrow-to-region (point) (mark t))
+ (while (re-search-forward "^> +$" nil t)
+ (replace-match ">")))))
(and (fboundp 'turn-on-gnus-dired-mode)
(not mdw-fast-startup)
(and (fboundp 'turn-on-gnus-dired-mode)
(not mdw-fast-startup)