From 3cbe9210e07e0c41cdd064cf7ad44d62d6a96ab0 Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Thu, 19 Oct 2023 01:30:50 -0700 Subject: [PATCH] Fix mu4e default-directory --- init.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index b72edfe..7f63a1b 100644 --- a/init.el +++ b/init.el @@ -629,7 +629,8 @@ COMMAND and COMINT are like `compile'." (use-package mu4e :ensure 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) ("C-x m" . mu4e-compose-new) :map message-mode-map @@ -637,6 +638,8 @@ COMMAND and COMINT are like `compile'." :init (require 'mu4e) (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 () (setq mu4e-hide-index-messages nil)) (defun my/mu4e-update-mail-and-index-silent ()