Mu4e: Add xdg-user-dir directory finding method
This commit is contained in:
parent
2efeaa3bf2
commit
95971d2dc7
1 changed files with 6 additions and 3 deletions
|
@ -52,9 +52,12 @@
|
|||
((featurep! :completion vertico) #'completing-read)
|
||||
(t #'ido-completing-read))
|
||||
mu4e-attachment-dir
|
||||
(expand-file-name (or (getenv "XDG_DOWNLOAD_DIR")
|
||||
"Downloads")
|
||||
"~")
|
||||
(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 '("─>" . "─▶")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue