I'm trying to set up
notmuch for sending and receiving my Gmail email, and I think
message-mode for its reply function. I tried setting
nil, but replying still quotes the entire message with a
> prefix on each line. But that didn't work. How do I set it so that when I reply to a message, the sender's original message doesn't get quoted at all, in standard Gmail style?
I'm trying to set up
The intended way to achieve Gmail-style citations is the following:
(with-eval-after-load 'message (setq message-cite-style message-cite-style-gmail))
Inspecting the value and documentation of the alist
message-cite-style-gmail provides further insight into the involved settings:
(defconst message-cite-style-gmail '((message-cite-function 'message-cite-original) (message-citation-line-function 'message-insert-formatted-citation-line) (message-cite-reply-position 'above) (message-yank-prefix " ") (message-yank-cited-prefix " ") (message-yank-empty-prefix " ") (message-citation-line-format "On %e %B %Y %R, %f wrote:\n")) "Message citation style used by Gmail. Use with `message-cite-style'.")
message-yank-*-prefix variables are the most relevant to your question; see their documentation for more information.
Note also that
message-cite-style-gmail is only provided for convenience; you can of course customise any one of the variables involved individually or by setting
message-cite-style to a custom alist.
For completeness, see also the documentation of
message-cite-styleis a variable defined in
The overall style to be used when yanking cited text. Value is either
nil(no variable overrides) or a let-style list of pairs
(VARIABLE VALUE)that will be bound in
message-yank-originalto do the quoting.
Presets to impersonate popular mail agents are found in the
message-cite-style-*variables. This variable is intended for use in
gnus-posting-styles, such as:
((posting-from-work-p) (eval (setq-local message-cite-style message-cite-style-outlook)))
You can customize this variable.
This variable was introduced, or its default value was changed, in version 24.1 of Emacs.