aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2022-10-18 10:03:12 +0800
committerJesús <heckyel@hyperbola.info>2022-10-18 10:03:12 +0800
commit2a76be1a87317b64769ec724c0fa2162b11ff1f0 (patch)
tree218f9936b5b0d08474e3ad06351c8645e55eb2d9
parentc4f5c73c0b1dc5c7e525dcdea10011ab49b30631 (diff)
downloademacs-personal-2a76be1a87317b64769ec724c0fa2162b11ff1f0.tar.lz
emacs-personal-2a76be1a87317b64769ec724c0fa2162b11ff1f0.tar.xz
emacs-personal-2a76be1a87317b64769ec724c0fa2162b11ff1f0.zip
Set web browser from environment file
-rw-r--r--.env.example3
-rw-r--r--modules/init-gui.el2
2 files changed, 4 insertions, 1 deletions
diff --git a/.env.example b/.env.example
index 154faae..8d2f605 100644
--- a/.env.example
+++ b/.env.example
@@ -2,6 +2,9 @@
EMACS_USER="LibreUser."
EMACS_EMAIL="user@example.org"
+# Web browser
+WEB_BROWSER_APP="iceweasel-uxp"
+
# Angular configuration
ANGULAR_SERVER_DIR="/usr/local/lib/node_modules/@angular/language-server"
NODEJS_MODULE_DIR="/usr/local/lib/node_modules"
diff --git a/modules/init-gui.el b/modules/init-gui.el
index 61e182c..befaf36 100644
--- a/modules/init-gui.el
+++ b/modules/init-gui.el
@@ -85,7 +85,7 @@
;; Define custom browser
;;----------------------------------------------------------------------------
(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