mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -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 '("─>" . "─▶")
|
||||
|
Reference in New Issue
Block a user