From ec666ac03e943e13e443024ac05703daa652e3af Mon Sep 17 00:00:00 2001 From: Frederik Vanrenterghem Date: Wed, 16 Oct 2024 20:35:56 +0800 Subject: [PATCH] Enhance the mu4e experience. --- emacs/.emacs.d/init.el | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index 34715c2..a953097 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -250,7 +250,9 @@ vc-follow-symlinks t mu4e-sent-folder "/Sent" mu4e-drafts-folder "/Drafts" mu4e-trash-folder "/Trash" - message-kill-buffer-on-exit t) + message-kill-buffer-on-exit t + ;;Fixing duplicate UID errors when using mbsync and mu4e + mu4e-change-filenames-when-moving t) ;; attach files to mu4e messages by marking the file(s) in dired and pressing C-c RET C-a (add-hook 'dired-mode-hook 'turn-on-gnus-dired-mode) ;; Define all bookmarks starting with favourite query used in mailcount modeline @@ -405,6 +407,23 @@ vc-follow-symlinks t ;; Other custom bindings ("M-y" . consult-yank-pop))) ;; orig. yank-pop +(use-package consult-mu + :ensure nil ;; cloned in + :load-path "~/.emacs.d/lisp/consult-mu" + :after (consult mu4e) + :custom + ;;maximum number of results shown in minibuffer + (consult-mu-maxnum 200) + ;;show preview when pressing any keys + (consult-mu-preview-key 'any) + ;;do not mark email as read when previewed + (consult-mu-mark-previewed-as-read nil) + ;;do not amrk email as read when selected. This is a good starting point to ensure you would not miss important emails marked as read by mistake especially when trying this package out. Later you can change this to t. + (consult-mu-mark-viewed-as-read nil) + ;; open the message in mu4e-view-buffer when selected. + (consult-mu-action #'consult-mu--view-action) + ) + ;; Configure `world-clock' (use-package time :ensure nil -- 2.39.5