From ea53ab9ef190e9a3c15b4bbb4e398238384da6d0 Mon Sep 17 00:00:00 2001 From: TEC Date: Sat, 11 Sep 2021 22:20:34 +0800 Subject: [PATCH] tweak(mu4e): end default attachment-dir with "/" Having "/" at the end allows for a single backspace to remove the directory, instead of just the last character - making it easier to select a different location in a completing read. --- modules/email/mu4e/config.el | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/modules/email/mu4e/config.el b/modules/email/mu4e/config.el index 45909ac0b..20747d164 100644 --- a/modules/email/mu4e/config.el +++ b/modules/email/mu4e/config.el @@ -52,12 +52,14 @@ ((featurep! :completion vertico) #'completing-read) (t #'ido-completing-read)) mu4e-attachment-dir - (if (executable-find "xdg-user-dir") - ;; remove trailing newline - (substring (shell-command-to-string "xdg-user-dir DOWNLOAD") 0 -1) - (expand-file-name (or (getenv "XDG_DOWNLOAD_DIR") - "Downloads") - "~")) + (concat + (if (executable-find "xdg-user-dir") + ;; remove trailing newline + (substring (shell-command-to-string "xdg-user-dir DOWNLOAD") 0 -1) + (expand-file-name (or (getenv "XDG_DOWNLOAD_DIR") + "Downloads") + "~")) + "/") ;; no need to ask mu4e-confirm-quit nil mu4e-headers-thread-single-orphan-prefix '("─>" . "─▶")