summaryrefslogtreecommitdiffhomepage
path: root/init.org
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2021-03-27 02:23:24 +0000
committerjao <jao@gnu.org>2021-03-27 02:23:24 +0000
commite489030b12bdaf153e48ed0c1f82d7393751ffc7 (patch)
treea9a0bf07ec2d10d97c766bf9df18eb702e1a80f5 /init.org
parentf82296ed76b8115b598124716358ad0df5dd8760 (diff)
downloadelibs-e489030b12bdaf153e48ed0c1f82d7393751ffc7.tar.gz
elibs-e489030b12bdaf153e48ed0c1f82d7393751ffc7.tar.bz2
one less variable
Diffstat (limited to 'init.org')
-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)