fix "M-r" binding for eshell history completion
[~bandali/configs] / .emacs.d / lisp / bandali-gnus.el
index 15f5bd5..6c8998a 100644 (file)
                                       gnus-thread-sort-by-date))
   ;; local key bindings
   (define-key gnus-summary-mode-map (kbd "M-L") #'org-store-link)
-  (define-key gnus-summary-mode-map (kbd "r")
-    #'gnus-summary-reply-with-original)
-  (define-key gnus-summary-mode-map (kbd "R")
-    #'gnus-summary-wide-reply-with-original)
+  ;; (define-key gnus-summary-mode-map (kbd "r")
+  ;;   #'gnus-summary-reply-with-original)
+  ;; (define-key gnus-summary-mode-map (kbd "R")
+  ;;   #'gnus-summary-wide-reply-with-original)
   (defvar b/gnus-summary-prefix-map)
   (define-prefix-command 'b/gnus-summary-prefix-map)
   (define-key gnus-summary-mode-map (kbd "v")
@@ -280,32 +280,37 @@ jami:bandali")
    gnus-message-replysign t
    gnus-posting-styles
    '((".*"
-      (address "bandali@gnu.org"))
-     ("nnimap\\+gnu:l\\..*"
-      (signature nil))
+      (address "bandali@gnu.org")
+      ("X-Message-SMTP-Method" "smtp fencepost.gnu.org 587"))
+     ;; ("nnimap\\+gnu:l\\..*"
+     ;;  (signature nil))
      ((header "subject" "ThankCRM")
       (to "webmasters-comment@gnu.org")
       (body "")
       (eval (setq b/message-cite-say-hi nil)))
      ("nnimap\\+shemshak:.*"
       (address "amin@shemshak.org")
+      ("X-Message-SMTP-Method" "smtp mail.shemshak.org 587")
       (body "\nBest,\n")
       (signature b/shemshak-signature)
       (gcc "nnimap+shemshak:Sent")
       (eval (setq b/message-cite-say-hi t)))
      ("nnimap\\+uwaterloo:.*"
       (address "bandali@uwaterloo.ca")
+      ("X-Message-SMTP-Method" "smtp connect.uwaterloo.ca 587")
       (body "\nBest,\n")
       (signature b/uwaterloo-signature))
      ("nnimap\\+uwaterloo:INBOX"
       (gcc "\"nnimap+uwaterloo:Sent Items\""))
      ("nnimap\\+csc:.*"
       (address "bandali@csclub.uwaterloo.ca")
+      ("X-Message-SMTP-Method" "smtp mail.csclub.uwaterloo.ca 587")
       (signature b/csc-signature)
       (gcc "nnimap+csc:Sent"))
      ("nnimap\\+sfl:.*"
       (address "amin.bandali@savoirfairelinux.com")
       (signature b/sfl-signature)
+      ("X-Message-SMTP-Method" "smtp mail.savoirfairelinux.com 587")
       (gcc "nnimap+sfl:Sent")
       (eval (setq-local b/sfl-p t))))))
 ;; hooks
@@ -340,11 +345,10 @@ jami:bandali")
 (with-eval-after-load 'gnus-dired
   (add-hook 'dired-mode-hook 'gnus-dired-mode))
 
-;; (with-eval-after-load 'gnus-utils
-;;   (csetq gnus-completing-read-function 'gnus-ido-completing-read))
-
 (with-eval-after-load 'mm-decode
-  (csetq mm-discouraged-alternatives '("text/html" "text/richtext")
+  (csetq ;; mm-attachment-override-types `("text/x-diff" "text/x-patch"
+         ;;                                ,@mm-attachment-override-types)
+         mm-discouraged-alternatives '("text/html" "text/richtext")
          mm-decrypt-option 'known
          mm-verify-option 'known))
 
@@ -358,11 +362,5 @@ jami:bandali")
   (csetq mml-secure-openpgp-encrypt-to-self t
          mml-secure-openpgp-sign-with-sender t))
 
-;; (require 'gnus-article-treat-patch)
-;; ;; note: be sure to customize faces with `:foreground "white"' when
-;; ;; using a theme with a white/light background :)
-;; (setq ft/gnus-article-patch-conditions
-;;       '("^@@ -[0-9]+,[0-9]+ \\+[0-9]+,[0-9]+ @@"))
-
 (provide 'bandali-gnus)
 ;;; bandali-gnus.el ends here