From 11d5bcfae20533468486ef6559ca879bfbe5735f Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Thu, 23 Oct 2025 00:06:51 -0500 Subject: refactor:mail-config: update command declarations and keymap binding Change the use-package command specification for `mu4e` to use :commands for lazy loading. Update keymap binding from `define-key` to `keymap-set` for readability and maintainability. --- modules/mail-config.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/mail-config.el b/modules/mail-config.el index af7afad3..e51cefd4 100644 --- a/modules/mail-config.el +++ b/modules/mail-config.el @@ -50,7 +50,7 @@ Prompts user for the action when executing." (use-package mu4e :ensure nil ;; mu4e gets installed by installing 'mu' via the system package manager :load-path "/usr/share/emacs/site-lisp/mu4e/" - :defer .5 + :commands (mu4e mu4e-update-index) :bind ("C-c m". mu4e) (:map mu4e-headers-mode-map @@ -290,7 +290,7 @@ Prompts user for the action when executing." :preface (define-prefix-command 'cj/email-map nil "keymap for email operations.") - (define-key cj/custom-keymap "e" 'cj/email-map) + (keymap-set cj/custom-keymap "e" #'cj/email-map) :bind ;; more intuitive keybinding for attachments (:map org-msg-edit-mode-map -- cgit v1.2.3