From 76e4f129563be48048a5f2142924aa3cebee6bb2 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Wed, 27 Sep 2023 23:03:14 -0700 Subject: [PATCH] [oni-notmuch] Enable olivetti mode in notmuch --- oni-notmuch.el | 7 +++++-- 1 file 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 ;; 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