From 90770f14eea105f7f1609b49309e25e151296650 Mon Sep 17 00:00:00 2001 From: JSDurand Date: Tue, 14 Dec 2021 15:15:35 +0800 Subject: eww-conf: eww-download-directory might be a function * eww-conf.el (durand-eww-download): eww-download-directory might be a function. --- eww-conf.el | 3 +++ 1 file changed, 3 insertions(+) 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))) -- cgit v1.2.3-18-g5258