I recently had to do this in my notmuch config to remove a lot of button noise in the notmuch-show buffer:
(defun jb55/notmuch-show-insert-header-p (part hide) ;; Show all part buttons except for text/plain and multipart (let ((mime-type (notmuch-show-mime-type part))) (not (member mime-type (list "multipart/alternative" "multipart/mixed" "text/plain"))))) (setq notmuch-show-insert-header-p-function 'jb55/notmuch-show-insert-header-p) where the default is: (defun notmuch-show-insert-header-p (part hide) ;; Show all part buttons except for the first part if it is text/plain. (let ((mime-type (notmuch-show-mime-type part))) (not (and (string= mime-type "text/plain") (<= (plist-get part :id) 1))))) Is there any reason this be a bad default? The multipart buttons don't seem to be much use AFAICT, and they litter almost all messages. Thanks! -- https://jb55.com _______________________________________________ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch