From eba52a1acadf47b74216bb86b8c3d78a5e339341 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Thu, 21 Dec 2000 02:11:01 +0000 Subject: [PATCH] (mail-mode): Set `comment-start' to the yank prefix. --- lisp/mail/sendmail.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el index 11df955c11f..1711f6ddc10 100644 --- a/lisp/mail/sendmail.el +++ b/lisp/mail/sendmail.el @@ -475,6 +475,9 @@ Here are commands that move to a header field (and create it if there isn't): (setq normal-auto-fill-function 'mail-mode-auto-fill) (make-local-variable 'fill-paragraph-function) (setq fill-paragraph-function 'mail-mode-fill-paragraph) + ;; Allow using comment commands to add/remove quoting (this only does + ;; anything if mail-yank-prefix is set to a non-nil value). + (set (make-local-variable 'comment-start) mail-yank-prefix) (make-local-variable 'adaptive-fill-regexp) (setq adaptive-fill-regexp (concat "[ \t]*\\([-|#;>*]+ *\\|(?[0-9]+[.)] *\\)+" -- 2.39.2