Set web browser from environment file

This commit is contained in:
Jesús 2022-10-18 10:03:12 +08:00
parent c4f5c73c0b
commit 2a76be1a87
No known key found for this signature in database
GPG Key ID: F6EE7BC59A315766
2 changed files with 4 additions and 1 deletions

View File

@ -2,6 +2,9 @@
EMACS_USER="LibreUser." EMACS_USER="LibreUser."
EMACS_EMAIL="user@example.org" EMACS_EMAIL="user@example.org"
# Web browser
WEB_BROWSER_APP="iceweasel-uxp"
# Angular configuration # Angular configuration
ANGULAR_SERVER_DIR="/usr/local/lib/node_modules/@angular/language-server" ANGULAR_SERVER_DIR="/usr/local/lib/node_modules/@angular/language-server"
NODEJS_MODULE_DIR="/usr/local/lib/node_modules" NODEJS_MODULE_DIR="/usr/local/lib/node_modules"

View File

@ -85,7 +85,7 @@
;; Define custom browser ;; Define custom browser
;;---------------------------------------------------------------------------- ;;----------------------------------------------------------------------------
(setq browse-url-browser-function 'browse-url-generic (setq browse-url-browser-function 'browse-url-generic
browse-url-generic-program "iceweasel-uxp") browse-url-generic-program (getenv "WEB_BROWSER_APP"))
;;---------------------------------------------------------------------------- ;;----------------------------------------------------------------------------
;; doas open file option ;; doas open file option