メールの返信時に相手の文章を引用したいですね. そのためのツールを2つ. 基本的にはmu-citeでいいのですが, 個人的にはmu-citeのfillが嫌いなのでそ こだけxciteを利用しています.
(autoload 'mu-cite-original "mu-cite" nil t) ;; for all but message-mode (add-hook 'mail-citation-hook (function mu-cite-original)) ;; for message-mode only (setq message-cite-function (function mu-cite-original))
(setq cited-prefix-regexp "^[^ \t>]*[>]*[ \t##]*[:||]?[ \t##]?")
(setq mu-cite-top-format '("----------------------------------------------------------------------\n" date "頃\n" subject "にて\n" from "(" petname ") さんはつぎのようにかきました\n" "----------------------------------------------------------------------\n\n"))
;; 引用符から「さん」を削る (add-hook 'mu-cite-pre-cite-hook '(lambda () (save-excursion (goto-char (point-min)) (replace-regexp "^\\(FAF\\(さん\\|氏\\)\\)>" "FAF>"))))
;; 引用にPetnameを使う (require 'mu-bbdb) (autoload 'wl-address-get-petname "wl-address") (setq mu-cite-default-methods-alist (append mu-cite-default-methods-alist (list (cons 'petname (function (lambda () (if (functionp 'wl-address-get-petname) (wl-address-get-petname (mu-cite-get-value 'from)) (mu-cite-get-value 'full-name))))))))
; mu-bbdb (add-hook 'mu-cite-load-hook (lambda () (require 'mu-bbdb))) ; bbdbデータベースを使う (setq mu-cite-top-format '(in-id ">>>>> “" bbdb-prefix-register "” = " from " wrote:\n")) (setq mu-cite-prefix-format '(bbdb-prefix-register-verbose "> "))
(require 'xcite) (autoload 'xcite "xcite" "Exciting cite" t) (autoload 'xcite-yank-cur-msg "xcite" "Exciting cite" t) (autoload 'xcite-indent-citation "xcite")
(global-set-key "\C-c\C-x" 'xcite) (global-set-key "\C-c\C-y" 'xcite-yank-cur-msg) (global-set-key "\C-cd" 'xcite-fill)
(setq wl-draft-cite-func 'xcite-indent-citation)