X-Git-Url: https://git.shemshak.org/~bandali/configs/blobdiff_plain/4cf3b363c05dfeb1fccc4414be2b2454428c6f33..ef8a092b801adabcae91dfb13bd7e1ee150bac1e:/init.org?ds=inline diff --git a/init.org b/init.org index c784100..f9986e0 100644 --- a/init.org +++ b/init.org @@ -704,7 +704,9 @@ In short, my favourite way of life. (setq org-src-tab-acts-natively t org-src-preserve-indentation nil org-edit-src-content-indentation 0 + org-email-link-description-format "Email %c: %s" ; %.30s org-log-done 'time) + :bind (:map org-mode-map ("M-L" . org-insert-last-stored-link)) :hook ((org-mode . org-indent-mode) (org-mode . auto-fill-mode) (org-mode . flyspell-mode)) @@ -1756,7 +1758,7 @@ Hopefully temporary. ** Gnus -#+begin_src emacs-lisp :tangle yes +#+begin_src emacs-lisp (setq amin-gnus-init-file (no-littering-expand-etc-file-name "gnus")) (use-package gnus @@ -1782,10 +1784,7 @@ Hopefully temporary. '(("amin" (display . 20)) ("uwaterloo" - (display . 20) - (posting-style - (address "abandali@uwaterloo.ca") - (gcc "\"nnimap+uwaterloo:Sent Items\"")))) + (display . 20))) gnus-home-directory (no-littering-expand-var-file-name "gnus/") gnus-directory (no-littering-expand-var-file-name "gnus/News/") message-directory amin-maildir @@ -1819,8 +1818,9 @@ Hopefully temporary. (concat local lapsed)))) (bind-keys :map gnus-article-mode-map - ("r" . gnus-article-reply-with-original) - ("R" . gnus-article-wide-reply-with-original))) + ("r" . gnus-article-reply-with-original) + ("R" . gnus-article-wide-reply-with-original) + ("M-L" . org-store-link))) (use-package gnus-sum :bind (:map gnus-summary-mode-map @@ -1834,8 +1834,9 @@ Hopefully temporary. '(List-Id X-RT-Originator))) (bind-keys :map gnus-summary-mode-map - ("r" . gnus-summary-reply-with-original) - ("R" . gnus-summary-wide-reply-with-original))) + ("r" . gnus-summary-reply-with-original) + ("R" . gnus-summary-wide-reply-with-original) + ("M-L" . org-store-link))) (use-package nnmail :config @@ -1845,10 +1846,16 @@ Hopefully temporary. (use-package gnus-msg :config (setq gnus-posting-styles - '(((header "delivered-to" "amin@aminb.org") + '((".*" (address "amin@aminb.org")) - ((header "delivered-to" "gnu@aminb.org") - (address "bandali@gnu.org"))))) + ("gnu.*" + (address "bandali@gnu.org")) + ("nnimap\\+uwaterloo:.*" + (address "abandali@uwaterloo.ca") + (gcc "\"nnimap+uwaterloo:Sent Items\""))))) + +(use-package gnus-group + :hook (gnus-group-mode . gnus-topic-mode)) (use-package mm-decode :config @@ -1944,6 +1951,47 @@ variables. This is useful for a regi `begin' frame-entry." nil)) #+end_src +** COMMENT gnus-alias :ARCHIVE: + +#+begin_src emacs-lisp +(use-package gnus-alias + :commands (gnus-alias-determine-identity + gnus-alias-select-identity) + :bind (:map message-mode-map + ("s-i" . gnus-alias-select-identity)) + :config + (setq + gnus-alias-default-identity "amin" + gnus-alias-identity-alist + '(("amin" + nil ;; Does not refer to any other identity + "Amin Bandali " + nil ;; Organization + nil ;; extra headers + nil ;; extra body text + nil) ;; signature file + ("gnu" + nil + "Amin Bandali " + nil + nil + nil + nil) + ("uw" + nil + "Amin Bandali " + nil + (("Gcc" . "\"nnimap+uwaterloo:Sent Items\"")) + nil + nil)) + gnus-alias-identity-rules + '(("amin" ("Delivered-To" "