aboutsummaryrefslogtreecommitdiff
path: root/+email.el
diff options
context:
space:
mode:
authorZofia Szweda <sophies@disroot.org>2026-09-17 20:06:07 +0200
committerZofia Szweda <sophies@disroot.org>2026-09-17 20:07:35 +0200
commitcbf846b3b78fc304b87bf71664024a90abfce5e0 (patch)
treeb93649222d44f38e2a2ab41630b0a001fe7cfff4 /+email.el
parente9e7242c898563bfa57ba32fc50d5dff45309983 (diff)
emacs: modularize emacs config
Diffstat (limited to '+email.el')
-rw-r--r--+email.el34
1 files changed, 34 insertions, 0 deletions
diff --git a/+email.el b/+email.el
new file mode 100644
index 0000000..ade568c
--- /dev/null
+++ b/+email.el
@@ -0,0 +1,34 @@
+;;; $DOOMDIR/+email.el -*- lexical-binding: t; -*-
+(setq auth-sources '("~/.authinfo.gpg")
+ auth-source-cache-expiry nil)
+
+(setq gnus-select-method
+ '(nnimap "disroot"
+ (nnimap-address "disroot.org")
+ (nnimap-server-port 993)
+ (nnimap-stream ssl)))
+
+(setq smtpmail-smtp-server "disroot.org"
+ smtpmail-smtp-service 587
+ smtpmail-stream-type 'starttls
+ message-send-mail-function #'smtpmail-send-it)
+
+(setq user-mail-address "roughlynamed@disroot.org"
+ user-full-name "Magdalena Szweda")
+
+(setq gnus-message-archive-method '(nnimap "disroot")
+ gnus-message-archive-group "Sent")
+
+(setq gnus-large-newsgroup nil
+ gnus-fetch-old-headers t
+ nnmail-expiry-target "Trash")
+
+(setq mml-secure-openpgp-signers
+ '("3258B28C124AB0891D6C9E929B72909EEF00CBD0")
+ mml-secure-openpgp-sign-with-sender t)
+
+(add-hook 'message-setup-hook #'message-insert-signature)
+(add-hook 'message-send-hook #'mml-secure-message-sign-pgpmime)
+
+(setq message-signature
+ "\n--\nMagdalena Szweda\nhttps://roughlynamed.net\nPGP: 3258 B28C 124A B089 1D6C 9E92 9B72 909E EF00 CBD0")