diff options
| author | Kleidi Bujari <mail@4kb.net> | 2025-08-24 20:47:47 +0000 |
|---|---|---|
| committer | Kleidi Bujari <mail@4kb.net> | 2025-08-24 20:47:47 +0000 |
| commit | 3557508e21024b07276f7e04b7be267a21f2f997 (patch) | |
| tree | f71230390b66f13981e1f8303243924122935c82 | |
| parent | 2a666d2df0fa93e4850d0acc54d1fcf55067c4e0 (diff) | |
| download | .emacs.d-3557508e21024b07276f7e04b7be267a21f2f997.tar.gz .emacs.d-3557508e21024b07276f7e04b7be267a21f2f997.tar.bz2 .emacs.d-3557508e21024b07276f7e04b7be267a21f2f997.zip | |
check env for http proxying before getting packages
| -rw-r--r-- | init.el | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -27,6 +27,13 @@ auto-save-default nil make-backup-files nil) +;; Conditionally enable HTTP proxy before package init +(when-let* ((proxy (getenv "FWDPROXY"))) + (setopt url-proxy-services + `(("no_proxy" . "^localhost") + ("http" . ,proxy) + ("https" . ,proxy)))) + (require 'package) (add-to-list 'package-archives |
