Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rougier/mu4e-thread
mu4e thread folding
https://github.com/rougier/mu4e-thread
elisp emacs folding mu4e thread
Last synced: 3 months ago
JSON representation
mu4e thread folding
- Host: GitHub
- URL: https://github.com/rougier/mu4e-thread
- Owner: rougier
- License: gpl-3.0
- Created: 2023-03-26T14:38:49.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-03-30T05:12:47.000Z (almost 2 years ago)
- Last Synced: 2024-08-07T18:30:37.700Z (6 months ago)
- Topics: elisp, emacs, folding, mu4e, thread
- Language: Emacs Lisp
- Homepage:
- Size: 31.3 KB
- Stars: 11
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
- License: LICENSE.txt
Awesome Lists containing this project
README
[[file:mu4e-thread.el][mu4e-thread.el]] is a library that allows to fold and unfold threads in mu4e headers mode. Folding works by creating an overlay over thread children that display a summary (number of hidden messages and possibly number of unread messages). Folding is perform just in time such that it is quite fast to fold/unfold threads. When a thread has unread messages, the folding stops at the first unread message unless `mu4e-thread-fold-unread` has been set to t. Similarly, when a thread has marked messages, the folding stops at the first marked message and it is strongly advised to disable marking on folded messages as explained in usage example.
** Usage example:
*** Key bindings
#+begin_src emacs-lisp
(bind-key "" #'mu4e-thread-goto-root 'mu4e-headers-mode-map)
(bind-key "" #'mu4e-thread-goto-next 'mu4e-headers-mode-map)
(bind-key "" #'mu4e-thread-goto-prev 'mu4e-headers-mode-map)
(bind-key "" #'mu4e-thread-fold-toggle-goto-next 'mu4e-headers-mode-map)
(bind-key "" #'mu4e-thread-fold-toggle-all 'mu4e-headers-mode-map)
#+end_src*** Folding after search
#+begin_src emacs-lisp
(add-hook 'mu4e-headers-found-hook #'mu4e-thread-fold-apply-all)
#+end_src*** No marking when messages are folded
#+begin_src emacs-lisp
(advice-add #'mu4e-headers-mark-and-next :around #'mu4e-thread/mark-and-next)
#+end_src