Elfeed: Disable Tor here since curl is configured to use it in .curlrc

master
Pierre Neidhardt 2019-02-27 16:49:48 +01:00
parent 56e8caca16
commit 51358e24e4
1 changed files with 5 additions and 4 deletions

View File

@ -3,10 +3,11 @@
(setq elfeed-db-directory (expand-file-name "elfeed" user-emacs-directory) (setq elfeed-db-directory (expand-file-name "elfeed" user-emacs-directory)
elfeed-search-title-max-width 100) elfeed-search-title-max-width 100)
(when (member "tor" ;; The following is only useful if curl is not set up to always use Tor.
(mapcar (lambda (p) (alist-get 'comm (process-attributes p))) ;; (when (member "tor"
(list-system-processes))) ;; (mapcar (lambda (p) (alist-get 'comm (process-attributes p)))
(setq elfeed-curl-extra-arguments '("--socks5" "localhost:9050"))) ;; (list-system-processes)))
;; (setq elfeed-curl-extra-arguments '("--socks5" "localhost:9050")))
(defun ambrevar/elfeed-add-bookmark () (defun ambrevar/elfeed-add-bookmark ()
"Add bookmark using `eww-add-bookmark'." "Add bookmark using `eww-add-bookmark'."