dotemacs

My Emacs configuration
git clone git://git.entf.net/dotemacs
Log | Files | Refs | LICENSE

commit f9035b88132963d705fd02a54068056cfabb9fce
parent 4455a4eda08dd6e84b0159dd4ab2cde4fb75fbdb
Author: Lukas Henkel <lh@entf.net>
Date:   Mon, 13 Dec 2021 22:16:12 +0100

Use consults completing-read-multiple

Diffstat:
Minit.el | 12++++++++++++
1 file changed, 12 insertions(+), 0 deletions(-)

diff --git a/init.el b/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.