summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--init.org6
1 files changed, 2 insertions, 4 deletions
diff --git a/init.org b/init.org
index f8df648..b4d59d9 100644
--- a/init.org
+++ b/init.org
@@ -2101,7 +2101,6 @@
* Browsing
*** Variables
#+begin_src emacs-lisp
- (defvar jao-browse-download-dir jao-sink-dir)
(defvar jao-browse-doc-use-emacs-p t)
(defvar jao-browse-url-function nil)
(defvar jao-browse-url-external-function nil)
@@ -2136,14 +2135,13 @@
(pmt (format "Save %s to: " url))
(read-file-name-function nil)
(dest (expand-file-name
- (read-file-name pmt jao-browse-download-dir nil nil def)))
+ (read-file-name pmt jao-sink-dir nil nil def)))
(title (jao-wget--get-title dest))
(src-url (jao-url-around-point t))
(auth (when (and user pwd)
`(,(format "--http-user=%s" user)
,(format "--http-password=%s" pwd)))))
(switch-to-buffer-other-window (get-buffer-create "*downloads*"))
- (setq jao-browse-download-dir (file-name-directory dest))
(erase-buffer)
(kill-new (format "[[doc:%s][%s]] (from [[%s][here]])"
(file-name-nondirectory dest)
@@ -2320,7 +2318,7 @@
(use-package eww
:demand t
- :custom ((eww-download-directory jao-browse-download-dir)
+ :custom ((eww-download-directory jao-sink-dir)
(eww-browse-url-new-window-is-tab nil)
(shr-width nil)
(shr-use-colors nil)