aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2023-09-27 23:03:14 -0700
committerGravatar Tom Willemse2023-09-27 23:03:14 -0700
commit76e4f129563be48048a5f2142924aa3cebee6bb2 (patch)
treed85a08cdc465b5366b9e64f432c9f08f7016a392
parente6a7b37ce47422db495d647b30643b9e26c58e67 (diff)
downloademacs-config-76e4f129563be48048a5f2142924aa3cebee6bb2.tar.gz
emacs-config-76e4f129563be48048a5f2142924aa3cebee6bb2.zip
[oni-notmuch] Enable olivetti mode in notmuch
-rw-r--r--oni-notmuch.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/oni-notmuch.el b/oni-notmuch.el
index 54c8148..4d79edd 100644
--- a/oni-notmuch.el
+++ b/oni-notmuch.el
@@ -4,8 +4,8 @@
;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local
-;; Version: 2023.0720.222735
-;; Package-Requires: (oni-sendmail notmuch ol-notmuch)
+;; Version: 2023.0927.230238
+;; Package-Requires: (oni-sendmail notmuch ol-notmuch olivetti)
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
@@ -92,5 +92,8 @@ Display SIGNAL when the process has finished and refresh the
(define-key notmuch-search-mode-map (kbd "d") #'oni-notmuch-search-delete-thread)
+(add-hook 'notmuch-hello-mode-hook 'olivetti-mode)
+(add-hook 'notmuch-show-mode-hook 'olivetti-mode)
+
(provide 'oni-notmuch)
;;; oni-notmuch.el ends here