From 3ee4e29e788dbf5b7caff9c145ba82793d86a4f4 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 21 Jun 2018 11:28:59 +0200 Subject: Emacs: use xdg-open when found, even if not in a DE --- emacs/.emacs.d/main.el | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'emacs') 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 -- cgit 1.4.1