summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2021-12-14 15:15:35 +0800
committerJSDurand <mmemmew@gmail.com>2021-12-14 15:15:35 +0800
commit90770f14eea105f7f1609b49309e25e151296650 (patch)
treec47f00c442e4c4f053118a496c7a09f797844c6d
parente47b870e37c8e1c51fd5a948cf3e8b1d708fdf85 (diff)
eww-conf: eww-download-directory might be a function
* eww-conf.el (durand-eww-download): eww-download-directory might be a function.
-rw-r--r--eww-conf.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/eww-conf.el b/eww-conf.el
index aaf48d3..23619e4 100644
--- a/eww-conf.el
+++ b/eww-conf.el
@@ -332,6 +332,9 @@ users to select."
(or (plist-get eww-data :title)
(file-name-nondirectory (eww-current-url)))
eww-download-directory))))
+ ;; eww-download-directory might be a function
+ (cond
+ ((functionp dir) (setq dir (funcall dir))))
;; Check the validity of DIR
(cond ((and (stringp dir) (not (string= dir ""))
(file-accessible-directory-p dir)))