Fix mu4e default-directory

This commit is contained in:
Alexander Rosenberg 2023-10-19 01:30:50 -07:00
parent 1e8e5f9e50
commit 3cbe9210e0
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

View File

@ -629,7 +629,8 @@ COMMAND and COMINT are like `compile'."
(use-package mu4e (use-package mu4e
:ensure nil :ensure nil
:defer nil :defer nil
:hook (mu4e-index-updated . my/-mu4e-enable-index-messages) :hook ((mu4e-index-updated . my/-mu4e-enable-index-messages)
(mu4e-main-mode . my/-mu4e-setup-main-mode))
:bind (("C-x C-m" . mu4e) :bind (("C-x C-m" . mu4e)
("C-x m" . mu4e-compose-new) ("C-x m" . mu4e-compose-new)
:map message-mode-map :map message-mode-map
@ -637,6 +638,8 @@ COMMAND and COMINT are like `compile'."
:init :init
(require 'mu4e) (require 'mu4e)
(evil-define-key '(normal motion) mu4e-main-mode-map "q" #'bury-buffer) (evil-define-key '(normal motion) mu4e-main-mode-map "q" #'bury-buffer)
(defun my/-mu4e-setup-main-mode ()
(setq-local default-directory "~/"))
(defun my/-mu4e-enable-index-messages () (defun my/-mu4e-enable-index-messages ()
(setq mu4e-hide-index-messages nil)) (setq mu4e-hide-index-messages nil))
(defun my/mu4e-update-mail-and-index-silent () (defun my/mu4e-update-mail-and-index-silent ()