all repos — nixfiles @ ebc213b2bac3b4e8681e0acb246dbe97c94e05fa

System and user configuration, managed by nix and home-manager

Emacs: Remove gnus configuration
Alan Pearce alan@alanpearce.eu
Wed, 30 Aug 2017 14:59:38 +0200
commit

ebc213b2bac3b4e8681e0acb246dbe97c94e05fa

parent

ad1b15ac87f8b17b81a6c03152cd343ee34657a4

2 files changed, 5 insertions(+), 38 deletions(-)

jump to
D emacs/.emacs.d/ap-spotcap.local.el.gpg

Not showing binary file.

M emacs/.emacs.d/main.elemacs/.emacs.d/main.el
@@ -1340,22 +1340,9 @@ (eldoc-add-command 'paredit-backward-delete 'paredit-close-round))) ;; #+END_SRC
 ;; ** Mail
 
-;; *** Gnus
-
-;; At work, I use gnus for email.  Some of the setup is specific to my
-;; workplace, so I keep it in a host-specific, GPG-encrypted file.
+;; *** Basics
 
 ;; #+BEGIN_SRC emacs-lisp
-(use-package gnus
-  :config (progn
-            (setq gnus-gcc-mark-as-read t
-                  mml-secure-openpgp-encrypt-to-self t
-                  send-mail-function #'smtpmail-send-it
-                  message-send-mail-function #'smtpmail-send-it)))
-
-(with-eval-after-load "gnus-mime"
-  (define-key gnus-mime-button-map " " #'gnus-mime-view-part-externally))
-
 (with-eval-after-load "mailcap"
   (when (eq system-type 'darwin)
     (mailcap-add-mailcap-entry "application" "pdf" '((viewer . "/usr/bin/qlmanage -p %s") (type . "application/pdf")))))
@@ -1363,6 +1350,9 @@ (with-eval-after-load "mm-decode"
   (add-to-list 'mm-discouraged-alternatives "text/html")
   (add-to-list 'mm-discouraged-alternatives "text/richtext"))
+
+(with-eval-after-load "mml-sec"
+  (setq mml-secure-openpgp-encrypt-to-self t))
 ;; #+END_SRC
 
 ;; *** mu
@@ -1416,26 +1406,6 @@ (cdr (assq 'user-mail-address (mu4e-context-vars context)))))                                                      mu4e-contexts))
                                        '("alan@alanpearce.uk"
                                          "alan@alanpearce.co.uk")))))
-;; #+END_SRC
-
-;; *** BBDB
-
-;; As I'm using Emacs for email, it makes sense to have contact
-;; information here as well.
-
-;; #+BEGIN_SRC emacs-lisp
-(use-package bbdb
-  :config (progn
-            (bbdb-initialize 'gnus 'message 'pgp)
-            (bbdb-mua-auto-update-init 'gnus 'message)
-            (setq bbdb-send-mail-style 'gnus
-                  bbdb-complete-mail-allow-cycling t
-                  bbdb-mua-auto-update t
-                  bbdb-mua-pop-up-window-size 3
-                  bbdb-mua-update-interactive-p '(query . create)
-                  bbdb-message-all-addresses t
-                  bbdb-offer-save t
-                  bbdb-offer-to-create 1)))
 ;; #+END_SRC
 
 ;; ** Misc
@@ -2674,10 +2644,7 @@ ;; #+BEGIN_SRC emacs-lisp (use-package ace-link
   :after avy
   :config (progn
-            (ace-link-setup-default)
-            (with-eval-after-load "gnus"
-              (bind-key "M-o" #'ace-link-gnus gnus-summary-mode-map)
-              (bind-key "M-o" #'ace-link-gnus gnus-article-mode-map))))
+            (ace-link-setup-default)))
 ;; #+END_SRC
 
 ;; *** goto-chg