diff options
| author | Craig Jennings <c@cjennings.net> | 2025-10-23 00:06:51 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2025-10-23 00:06:51 -0500 |
| commit | 11d5bcfae20533468486ef6559ca879bfbe5735f (patch) | |
| tree | 0b19d42f6642246083a1203037731babcfba0ea0 /modules/mail-config.el | |
| parent | 5e81a84fa0b0888ca85b098b057bf10d1186923a (diff) | |
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.
Diffstat (limited to 'modules/mail-config.el')
| -rw-r--r-- | modules/mail-config.el | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
