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 | b26a04f68f392e99fcf5f72f3b7c6729be119aae (patch) | |
| tree | 85b2ad664b584f6b5aeafec23075a0979bfd3c2c | |
| parent | d33b15f535226782bf726c4fbe11b8590b79679b (diff) | |
| download | dotemacs-b26a04f68f392e99fcf5f72f3b7c6729be119aae.tar.gz dotemacs-b26a04f68f392e99fcf5f72f3b7c6729be119aae.zip | |
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.
| -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 af7afad35..e51cefd4a 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 |
