diff options
author | jao <jao@gnu.org> | 2022-03-03 05:55:45 +0000 |
---|---|---|
committer | jao <jao@gnu.org> | 2022-03-03 22:17:26 +0000 |
commit | 31c1da1f0722ab0b85d022062f8e5eb46564f920 (patch) | |
tree | 5fb14ca2cb47e6da1f6a58399fb0453446e4ff21 /gnus.org | |
parent | eeeea452c605cb105adacef018ded3c6e3b77d2f (diff) | |
download | elibs-31c1da1f0722ab0b85d022062f8e5eb46564f920.tar.gz elibs-31c1da1f0722ab0b85d022062f8e5eb46564f920.tar.bz2 |
whitespace
Diffstat (limited to 'gnus.org')
-rw-r--r-- | gnus.org | 66 |
1 files changed, 31 insertions, 35 deletions
@@ -377,40 +377,6 @@ (eval-after-load "message" '(setq message-draft-headers (remove 'Date message-draft-headers))) #+END_SRC -* Notmuch integration -*** notmuch tags - #+begin_src emacs-lisp - (require 'jao-notmuch-gnus) - - (defun jao-gnus-toggle-todo () - (interactive) - (jao-notmuch-gnus-toggle-tags '("todo"))) - - (define-key gnus-summary-mode-map (kbd "C-c T") #'jao-notmuch-gnus-tag-message) - (define-key gnus-summary-mode-map (kbd "C-c t") #'jao-notmuch-gnus-show-tags) - (define-key gnus-summary-mode-map (kbd "C-c C-t") #'jao-gnus-toggle-todo) - - #+end_src -*** notmuch -> gnus / consult-notmuch - #+begin_src emacs-lisp - (with-eval-after-load "notmuch-show" - (define-key gnus-group-mode-map "z" #'jao-gnus-consult-notmuch) - (define-key gnus-group-mode-map "Z" #'notmuch) - (define-key notmuch-show-mode-map - (kbd "C-c C-c") - #'jao-notmuch-gnus-goto-message)) - - (defun jao-gnus-notmuch-export (query) - (notmuch-tree query nil nil "* consult-notmuch results *")) - - (setq consult-notmuch-export-function #'jao-gnus-notmuch-export) - - (with-eval-after-load "notmuch-tree" - (define-key notmuch-tree-mode-map - (kbd "C-<return>") - #'jao-notmuch-gnus-goto-message)) - - #+end_src * Groups buffer #+begin_src emacs-lisp ;; (setq gnus-group-line-format " %m%S%p%P:%~(pad-right 35)c %3y %B\n") @@ -726,7 +692,37 @@ (jao-browse-add-url-to-mpc url)))))) #+end_src * Add-ons -*** icalendar/org +*** notmuch integration + #+begin_src emacs-lisp + (require 'jao-notmuch-gnus) + + (defun jao-gnus-toggle-todo () + (interactive) + (jao-notmuch-gnus-toggle-tags '("todo"))) + + (define-key gnus-summary-mode-map (kbd "C-c T") #'jao-notmuch-gnus-tag-message) + (define-key gnus-summary-mode-map (kbd "C-c t") #'jao-notmuch-gnus-show-tags) + (define-key gnus-summary-mode-map (kbd "C-c C-t") #'jao-gnus-toggle-todo) + + (with-eval-after-load "notmuch-show" + (define-key gnus-group-mode-map "z" #'jao-gnus-consult-notmuch) + (define-key gnus-group-mode-map "Z" #'notmuch) + (define-key notmuch-show-mode-map + (kbd "C-c C-c") + #'jao-notmuch-gnus-goto-message)) + + (defun jao-gnus-notmuch-export (query) + (notmuch-tree query nil nil "* consult-notmuch results *")) + + (setq consult-notmuch-export-function #'jao-gnus-notmuch-export) + + (with-eval-after-load "notmuch-tree" + (define-key notmuch-tree-mode-map + (kbd "C-<return>") + #'jao-notmuch-gnus-goto-message)) + + #+end_src +*** gnus-icalendar #+begin_src emacs-lisp (require 'ol-gnus) (use-package gnus-icalendar |