summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/main.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el
index a059cce..cd858cf 100644
--- a/emacs/.emacs.d/main.el
+++ b/emacs/.emacs.d/main.el
@@ -319,6 +319,10 @@
             (setq exec-path-from-shell-arguments '("-l"))
             (exec-path-from-shell-initialize)))
 
+(with-eval-after-load 'browse-url
+  (when (executable-find "xdg-open")
+    (setq browse-url-browser-function #'browse-url-xdg-open)))
+
 ;;;;; NixOS sandboxes
 
 ;; I'm currently exploring using nix to create sandboxes for