diff options
author | jao <jao@gnu.org> | 2021-08-13 19:53:57 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2021-08-13 19:53:57 +0100 |
commit | 178245f5ef8606338b768ebaffe9deeb1ab5f63b (patch) | |
tree | 4d951bfda297acf38af56d2aa04e9da3b1537bda /notmuch.org | |
parent | c8089e64534fcf9d0f33e7424f389887ca10408d (diff) | |
download | elibs-178245f5ef8606338b768ebaffe9deeb1ab5f63b.tar.gz elibs-178245f5ef8606338b768ebaffe9deeb1ab5f63b.tar.bz2 |
notmuch: prefer html multipart
Diffstat (limited to 'notmuch.org')
-rw-r--r-- | notmuch.org | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/notmuch.org b/notmuch.org index eaf488e..e2584e8 100644 --- a/notmuch.org +++ b/notmuch.org @@ -263,8 +263,18 @@ (advice-add 'notmuch-tree-format-field :around #'jao-notmuch--format-field) - (defun jao-notmuch--adjust-header () (setq header-line-format nil)) - (add-hook 'notmuch-show-hook #'jao-notmuch--adjust-header) + (defun jao-notmuch-show-setup () + (setq header-line-format nil)) + + (add-hook 'notmuch-show-hook #'jao-notmuch-show-setup) + (jao-notmuch-show-prefer-html) + + (defun jao-notmuch-tree-setup () + (setq-local scroll-preserve-screen-position nil + scroll-margin 2 + scroll-step 1)) + + (add-hook 'notmuch-tree-mode-hook #'jao-notmuch-tree-setup) :bind (:map notmuch-tree-mode-map (("C" . jao-notmuch-echo-count) |