Skip to content

Commit

Permalink
tweak(core): automatically enable proxies when set
Browse files Browse the repository at this point in the history
Signed-off-by: Abdelhak Bougouffa <abougouffa@fedoraproject.org>
  • Loading branch information
abougouffa committed Feb 8, 2024
1 parent 06fc5ec commit bf1f0be
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions init.el
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,10 @@
;; Load user init tweaks when available
(+load-user-configs 'init-tweaks 'local/init-tweaks)

;; When `minemacs-proxies' is set in "early-init.el" or in "init-tweaks.el",
;; `minemacs-enable-proxy' will set the environment variables accordingly.
(minemacs-enable-proxy)

;; HACK: Load the environment variables saved from shell using `+env-save' to
;; `+env-file'. `+env-save' saves all environment variables except these matched
;; by `+env-deny-vars'.
Expand Down
7 changes: 7 additions & 0 deletions skel/early-config.el
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@
;; Disable `dashboard'
;; (setq +dashboard-disable t)

;; Setup proxies
;; (setq minemacs-proxies
;; '(("no" . "localhost,127.0.0.1,.local,.mylocaltld")
;; ("ftp" . "http://myproxy.local:8080/")
;; ("http" . "http://myproxy.local:8080/")
;; ("https" . "http://myproxy.local:8080/")))

;; Enable full screen at startup
;; (if-let ((fullscreen (assq 'fullscreen default-frame-alist)))
;; (setcdr fullscreen 'fullboth)
Expand Down

0 comments on commit bf1f0be

Please sign in to comment.