commit f9035b88132963d705fd02a54068056cfabb9fce from: Lukas Henkel date: Mon Dec 27 14:59:49 2021 UTC Use consults completing-read-multiple commit - 4455a4eda08dd6e84b0159dd4ab2cde4fb75fbdb commit + f9035b88132963d705fd02a54068056cfabb9fce blob - d6097043374adc8ab57d17788f4fff63ba254558 blob + 3cdfed952d155c99e155243981c9189bcafad158 --- init.el +++ init.el @@ -123,6 +123,18 @@ (define-key elfeed-search-mode-map (kbd "G") #'elfeed-update))) (add-hook 'lisp-mode-hook #'paredit-mode) +(advice-add #'completing-read-multiple + :override #'consult-completing-read-multiple) + +;; notmuch's tag selection doesnt work with consult-completing-read-multiple +;; items need to be trimmed +(defun lh/notmuch-read-tag-changes-trim (tags) + (seq-map (lambda (x) + (string-trim-right x)) + tags)) + +(advice-add #'notmuch-read-tag-changes :filter-return #'lh/notmuch-read-tag-changes-trim) + (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful.