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.
This commit is contained in:
TEC 2021-09-11 22:20:34 +08:00
parent 6d1e86affc
commit ea53ab9ef1
No known key found for this signature in database
GPG key ID: 779591AFDB81F06C

View file

@ -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 '("─>" . "─▶")