From 0adcb44a85e05ac72fd6d2d455a5e2135140ad00 Mon Sep 17 00:00:00 2001 From: Joseph Ferano Date: Fri, 16 Feb 2024 12:29:29 +0800 Subject: [PATCH] Emacs: Automatically update mu4e, better keybinding, show in doom modeline --- .config/emacs/init.org | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.config/emacs/init.org b/.config/emacs/init.org index e0b3419..fd3bff3 100644 --- a/.config/emacs/init.org +++ b/.config/emacs/init.org @@ -241,6 +241,7 @@ Finish up elm-mode gdscript-mode ;; Tools + mu4e-alert dirvish restclient disaster @@ -876,6 +877,7 @@ Simple function more quickly align text (kbd "SPC Bd") 'bookmark-delete (kbd "SPC mr") 'joe/compile-run (kbd "SPC mc") 'joe/compile-comp + (kbd "SPC mm") 'mu4e (kbd "SPC ct") 'joe/consult-theme (kbd "SPC cl") 'consult-line (kbd "SPC ci") 'consult-imenu @@ -1780,8 +1782,6 @@ odd looking ~'(t .t)~ is for specifying a default for all other actions. (add-to-list 'load-path "/usr/share/emacs/site-lisp/mu4e/") (require 'mu4e) -(evil-global-set-key 'normal (kbd "SPC mm") #'mu4e) - ;; Attach files to a message composition buffer by going into `dired' ;; and doing C-c C-m C-a (M-x `gnus-dired-attach'). (require 'gnus-dired) ; does not require `gnus' @@ -1805,6 +1805,8 @@ odd looking ~'(t .t)~ is for specifying a default for all other actions. (setq message-kill-buffer-on-exit nil) +(setq mu4e-update-interval 10) +(setq mu4e-hide-index-messages 't) (setq mu4e-completing-read-function 'completing-read) (setq mu4e-sent-messages-behavior 'sent) (setq mu4e-context-policy 'pick-first) @@ -1863,6 +1865,8 @@ odd looking ~'(t .t)~ is for specifying a default for all other actions. '((:maildir "/ferano.io/Inbox" :key ?f) (:maildir "/gmail/[Gmail]/All Mail" :key ?g))) +(mu4e 't) +(add-hook 'after-init-hook #'mu4e-alert-enable-mode-line-display) ;; (:name "Ferano.io Unread" :query "m:/ferano.io/Inbox AND g:unread" :key ?u))) #+end_src