summaryrefslogtreecommitdiff
path: root/gnus-conf.el
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2021-08-12 14:38:45 +0800
committerJSDurand <mmemmew@gmail.com>2021-08-12 14:38:45 +0800
commit7392b1ca6977407bb4f29b8bfc1f1d7b2e9def96 (patch)
tree2c06ac2821862ed0f36d8198f01beeb75cee6b38 /gnus-conf.el
parent718ed23937b4139a07b077a15c11bb5d458adc2f (diff)
new: configure supercite
* gnus-conf.el (sc-cite-original): This is the main user entry point of Supercite. (mail-citation-hook): This hook is used to cite messages. (sc-electric-references-p): Don't use electric reference mode automatically. I prefer the manual approach. (sc-preferred-header-style): I like "sc-header-on-said". (sc-nested-citation-p): I prefer the non-nested style.
Diffstat (limited to 'gnus-conf.el')
-rw-r--r--gnus-conf.el21
1 files changed, 20 insertions, 1 deletions
diff --git a/gnus-conf.el b/gnus-conf.el
index 7be8509..4fe446c 100644
--- a/gnus-conf.el
+++ b/gnus-conf.el
@@ -43,7 +43,6 @@
(setq mm-verify-option 'known)
-
;;; Update by mu4e
(declare-function #'mu4e-update-mail-and-index "mu4e" (RUN-IN-BACKGROUND))
@@ -222,3 +221,23 @@
(setq-local buffer-auto-save-file-name nil)))))
(advice-add #'gnus :after #'durand-disable-auto-save-for-newsrc-ad)
+
+;;; Supercite
+
+;; This is suggested by the manual
+(autoload 'sc-cite-original "supercite" nil t)
+
+;; This is the only thing we need to enable using Supercite
+(add-hook 'mail-citation-hook #'sc-cite-original)
+
+;; I can start the eelectirc reference mode later on, by the function
+;; `sc-insert-reference' (bound to "C-c C-p w" by default).
+(setq sc-electric-references-p nil)
+
+;; I find this style quite balanced: not too verbose but still
+;; informative enough
+(setq sc-preferred-header-style 1)
+
+;; I used to use the nested style, but now I think the non-nested
+;; style is clearer and cleaner
+(setq sc-nested-citation-p nil)