[Date Prev][Date Next][Thread Prev][][Date Index][Thread Index]

toggle all proxy on and off



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))))