[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
toggle all proxy on and off
- From: jidanni@xxxxxxxxxxx
- Date: Sun, 12 Feb 2012 13:23:15 +0800
- X-ml-name: emacs-w3m
- X-mail-count: 11755
In Firefox, one can easily click No Proxy in preferences, to turn off
all proxying for the rest of the session.
But in emacs-w3m one has to use the more complicated
w3m-command-arguments-alist
w3m-no-proxy-domains
OK, I made
(defun jidanni-proxy-all-toggle nil
"Toggle my proxy settings"
(interactive)
(if w3m-command-arguments-alist
(setq w3m-command-arguments-alist nil)
(setq w3m-command-arguments-alist
'((".*"
"-no-proxy"))))
(message (concat "w3m-command-arguments-alist now " (prin1-to-string w3m-command-arguments-alist))))