https://github.com/seblemaguer/sauron-notmuch
Notmuch (https://notmuchmail.org/notmuch-emacs/) adapter for Sauron (https://github.com/djcb/sauron)
https://github.com/seblemaguer/sauron-notmuch
emacs email notification notmuch sauron
Last synced: 9 months ago
JSON representation
Notmuch (https://notmuchmail.org/notmuch-emacs/) adapter for Sauron (https://github.com/djcb/sauron)
- Host: GitHub
- URL: https://github.com/seblemaguer/sauron-notmuch
- Owner: seblemaguer
- License: gpl-3.0
- Created: 2017-12-02T16:32:18.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-11T07:49:46.000Z (over 8 years ago)
- Last Synced: 2025-07-04T00:03:44.504Z (11 months ago)
- Topics: emacs, email, notification, notmuch, sauron
- Language: Emacs Lisp
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sauron-notmuch
Notmuch (https://notmuchmail.org/notmuch-emacs/) adapter for Sauron (https://github.com/djcb/sauron)
## How to install
### Pre-requisites
For now, it is assuming that you have a function calling the hook. A minimal example would be:
```elisp
;; Hook for notmuch
(defcustom notmuch-index-updated-hook nil
"Normal hook run when notmuch index has been updated."
:type 'hook
:group 'notmuch)
(defun notmuch-update-index ()
"Poll and update the index."
(interactive)
(notmuch-poll)
(run-hooks 'notmuch-index-updated-hook))
```
### use-package (not available on melpa or anything like that yet !)
```elisp
(use-package sauron-notmuch
:ensure t
:after sauron
:after notmuch
:config
;; Define an important filter
;; (setq sauron-notmuch-important-filter "....")
;; Start
(sauron-notmuch-start))
```