Emacs: Use Tor over Privoxy

master
Pierre Neidhardt 2019-02-27 16:02:13 +01:00
parent 92db2bf15a
commit c4b6cb7b7e
1 changed files with 9 additions and 0 deletions

View File

@ -34,6 +34,15 @@
;;; Move user-emacs-directory so that user files don't mix with cache files.
(setq user-emacs-directory "~/.cache/emacs/")
;; Tor / Proxy: set up before package initialization.
(when (member "privoxy"
(mapcar (lambda (p) (alist-get 'comm (process-attributes p)))
(list-system-processes)))
(require 'url)
(setq url-proxy-services
'(("http" . "127.0.0.1:8118")
("https" . "127.0.0.1:8118"))))
(when (require 'package nil t)
;; Different Emacs versions have different byte code. If a versioned ELPA
;; directory is found, use it.