diff --git a/bindings.el b/bindings.el index 77eb13c..bf98555 100644 --- a/bindings.el +++ b/bindings.el @@ -463,16 +463,27 @@ "w" #'chezmoi-write) (map! - :map mu4e-main-mode-map + :map '(mu4e-main-mode-map mu4e-compose-mode-map mu4e-headers-mode-map mu4e-view-mode-map) :localleader :desc "Compose" "c" #'compose-mail - :desc "Search (consult)" "s" #'consult-mu) + :desc "Search (consult)" "SPC" #'consult-mu + :desc "Search (mu4e)" "f" #'mu4e-search + :desc "Update All" "u" #'mu4e-update-mail-and-index + :desc "Bookmarks" "b" #'mu4e-search-bookmark + :desc "Jump to Maildir" "j" #'mu4e-search-maildir + :desc "Switch Context" ";" #'mu4e-context-switch) + +(map! + :map mu4e-headers-mode-map + "v" #'mu4e-view-action + :localleader + :desc "View Action" "v" #'mu4e-view-action + :desc "Sort Order" "s" #'mu4e-search-change-sorting) (map! :map mu4e-compose-mode-map :localleader - :desc "Send message and exit" "s" #'message-send-and-exit - :desc "Update All" "s" #'mu4e-update-mail-and-index) + :desc "Send message and exit" "s" #'message-send-and-exit) (map! :map dired-mode-map diff --git a/config.el b/config.el index 46e9801..c783413 100644 --- a/config.el +++ b/config.el @@ -16,7 +16,7 @@ ;; This determines the style of line numbers in effect. If set to `nil', line ;; numbers are disabled. For relative line numbers, set this to `relative'. -(setq display-line-numbers-type t) +(setq display-line-numbers-type 'relative) (setq scroll-preserve-screen-position t) (setq global-hl-line-modes nil) @@ -321,7 +321,7 @@ (setq message-citation-line-format "On %e %B %Y at %R %Z, %f wrote:\n") (setq message-citation-line-function 'message-insert-formatted-citation-line) - (setq message-signature nil) + (add-hook 'mu4e-thread-mode-hook #'mu4e-thread-fold-all) (setq mu4e-bookmarks nil) @@ -333,6 +333,7 @@ (setq mu4e-compose-format-flowed t) + (setq message-signature nil) (add-hook! 'mu4e-compose-mode-hook (use-hard-newlines -1) (message-goto-body) diff --git a/custom.el b/custom.el index 43fbfdc..bc5bacb 100644 --- a/custom.el +++ b/custom.el @@ -15,7 +15,9 @@ ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. - ) + '(cursor ((t (:background "#FCFCFA" :foreground "black")))) + '(line-number ((t (:foreground "#424242")))) + '(mu4e-highlight-face ((t (:inherit nil :background "gray26" :foreground "gray85"))))) ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. diff --git a/modules/private/meow/config.el b/modules/private/meow/config.el index 9a67a96..397030d 100644 --- a/modules/private/meow/config.el +++ b/modules/private/meow/config.el @@ -51,5 +51,5 @@ (meow-tree-sitter-register-defaults) (pushnew! meow-mode-state-list '(sly-db-mode . motion)) (pushnew! meow-mode-state-list '(sly-inspector-mode . motion)) - (pushnew! meow-mode-state-list '(mu4e-main-mode . insert))) + (pushnew! meow-mode-state-list '(mu4e-main-mode . motion))) ;; (pushnew! meow-mode-state-list '(custom-mode . motion)))