Update mu4e config for mu 1.12.15

- Use symlinked path instead of versioned Cellar path for mu4e
- Add explicit mu4e-mu-binary path for Homebrew on Apple Silicon
- Add transient menu keybinding (C-c m) for mu4e 1.12.9+
- Use message-signature instead of deprecated mu4e-compose-signature
- Remove unused IONOS maildir shortcuts and LKML bookmark

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-01-17 11:28:46 +01:00
parent 2b94fb15d4
commit 3a22e1e294

View File

@@ -2,10 +2,15 @@
;; mu4e should already be loaded from .emacs before this file is loaded ;; mu4e should already be loaded from .emacs before this file is loaded
;; If not loaded, try to load it ;; If not loaded, try to load it
(add-to-list 'load-path "/opt/homebrew/Cellar/mu/1.12.12/share/emacs/site-lisp/mu/mu4e") ;; Note: mu4e path is symlinked from Homebrew Cellar
(add-to-list 'load-path "/opt/homebrew/share/emacs/site-lisp/mu4e")
;; Ensure Emacs can find the mu binary (Homebrew on Apple Silicon)
(setq mu4e-mu-binary "/opt/homebrew/bin/mu")
(require 'mu4e) (require 'mu4e)
;; HTML rendering configuration for mu4e 1.12 ;; HTML rendering configuration for mu4e 1.12+
;; Use shr as the default renderer ;; Use shr as the default renderer
(setq mm-text-html-renderer 'shr) (setq mm-text-html-renderer 'shr)
@@ -184,11 +189,7 @@
(:name "📋 GCC" (:name "📋 GCC"
:query "list:gcc.gcc.gnu.org AND NOT flag:trashed" :query "list:gcc.gcc.gnu.org AND NOT flag:trashed"
:key ?G) :key ?G)))
(:name "📋 LKML"
:query "list:linux-kernel.vger.kernel.org AND NOT flag:trashed"
:key ?K)))
(setq mu4e-maildir-shortcuts (setq mu4e-maildir-shortcuts
'(("/Personal/INBOX" . ?i) '(("/Personal/INBOX" . ?i)
@@ -197,12 +198,7 @@
("/Personal/Drafts" . ?d) ("/Personal/Drafts" . ?d)
("/Personal/Spam " . ?S) ("/Personal/Spam " . ?S)
("/Personal/Archive" . ?a) ("/Personal/Archive" . ?a)
("/Personal/Lists" . ?l) ("/Personal/Lists" . ?l)))
("/IONOS/INBOX" . ?I)
("/IONOS/Sent" . ?S)
("/IONOS/Trash" . ?T)
("/IONOS/Drafts" . ?D)
("/IONOS/Archive" . ?A)))
;; Custom function for fuzzy relative timestamps ;; Custom function for fuzzy relative timestamps
(defun my-mu4e-format-date (date) (defun my-mu4e-format-date (date)
@@ -319,6 +315,12 @@
(global-set-key (kbd "C-x m") 'mu4e) (global-set-key (kbd "C-x m") 'mu4e)
(global-set-key (kbd "C-x M") 'mu4e-compose-new) (global-set-key (kbd "C-x M") 'mu4e-compose-new)
;; Transient menu (mu4e 1.12.9+)
(with-eval-after-load 'mu4e
(require 'mu4e-transient nil t)
(when (featurep 'mu4e-transient)
(global-set-key (kbd "C-c m") #'mu4e-transient-menu)))
;; Double-check pandoc is available and being used ;; Double-check pandoc is available and being used
(if (executable-find "pandoc") (if (executable-find "pandoc")
(message "Pandoc found at: %s" (executable-find "pandoc")) (message "Pandoc found at: %s" (executable-find "pandoc"))
@@ -378,9 +380,8 @@
(:list-id "boost-announce.lists.boost.org" :name "Boost-Announce") (:list-id "boost-announce.lists.boost.org" :name "Boost-Announce")
(:list-id "boost-interest.lists.boost.org" :name "Boost-Interest"))) (:list-id "boost-interest.lists.boost.org" :name "Boost-Interest")))
;; Signature ;; Signature (mu4e 1.12+ uses message-signature)
(setq mu4e-compose-signature (setq message-signature "Jens")
"Jens")
;; SMTP Configuration for sending mail ;; SMTP Configuration for sending mail
(require 'smtpmail) (require 'smtpmail)