fix: emacs browse-url not opening links

This commit is contained in:
Leon Schwarzäugl 2025-02-25 14:03:28 +01:00
parent c8e4493b8a
commit 383fb7022f
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
3 changed files with 4 additions and 0 deletions

View file

@ -8887,6 +8887,7 @@ Sets environment variables. Here I am only setting the EDITOR variable, most var
{ {
home.sessionVariables = { home.sessionVariables = {
EDITOR = "e -w"; EDITOR = "e -w";
DISPLAY = ":0";
SWARSEL_LO_RES = config.swarselsystems.lowResolution; SWARSEL_LO_RES = config.swarselsystems.lowResolution;
SWARSEL_HI_RES = config.swarselsystems.highResolution; SWARSEL_HI_RES = config.swarselsystems.highResolution;
}; };
@ -11872,6 +11873,7 @@ Here I set up some things that are too minor to put under other categories.
password-cache-expiry nil password-cache-expiry nil
) )
(setq browse-url-browser-function 'browse-url-firefox) (setq browse-url-browser-function 'browse-url-firefox)
(setenv "DISPLAY" ":0")
;; disable a keybind that does more harm than good ;; disable a keybind that does more harm than good
(global-set-key [remap suspend-frame] (global-set-key [remap suspend-frame]
(lambda () (lambda ()

View file

@ -2,6 +2,7 @@
{ {
home.sessionVariables = { home.sessionVariables = {
EDITOR = "e -w"; EDITOR = "e -w";
DISPLAY = ":0";
SWARSEL_LO_RES = config.swarselsystems.lowResolution; SWARSEL_LO_RES = config.swarselsystems.lowResolution;
SWARSEL_HI_RES = config.swarselsystems.highResolution; SWARSEL_HI_RES = config.swarselsystems.highResolution;
}; };

View file

@ -400,6 +400,7 @@ create a new one."
password-cache-expiry nil password-cache-expiry nil
) )
(setq browse-url-browser-function 'browse-url-firefox) (setq browse-url-browser-function 'browse-url-firefox)
(setenv "DISPLAY" ":0")
;; disable a keybind that does more harm than good ;; disable a keybind that does more harm than good
(global-set-key [remap suspend-frame] (global-set-key [remap suspend-frame]
(lambda () (lambda ()