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:
parent
6d1e86affc
commit
ea53ab9ef1
1 changed files with 8 additions and 6 deletions
|
@ -52,12 +52,14 @@
|
||||||
((featurep! :completion vertico) #'completing-read)
|
((featurep! :completion vertico) #'completing-read)
|
||||||
(t #'ido-completing-read))
|
(t #'ido-completing-read))
|
||||||
mu4e-attachment-dir
|
mu4e-attachment-dir
|
||||||
(if (executable-find "xdg-user-dir")
|
(concat
|
||||||
;; remove trailing newline
|
(if (executable-find "xdg-user-dir")
|
||||||
(substring (shell-command-to-string "xdg-user-dir DOWNLOAD") 0 -1)
|
;; remove trailing newline
|
||||||
(expand-file-name (or (getenv "XDG_DOWNLOAD_DIR")
|
(substring (shell-command-to-string "xdg-user-dir DOWNLOAD") 0 -1)
|
||||||
"Downloads")
|
(expand-file-name (or (getenv "XDG_DOWNLOAD_DIR")
|
||||||
"~"))
|
"Downloads")
|
||||||
|
"~"))
|
||||||
|
"/")
|
||||||
;; no need to ask
|
;; no need to ask
|
||||||
mu4e-confirm-quit nil
|
mu4e-confirm-quit nil
|
||||||
mu4e-headers-thread-single-orphan-prefix '("─>" . "─▶")
|
mu4e-headers-thread-single-orphan-prefix '("─>" . "─▶")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue