Emacs: use xdg-open when found, even if not in a DE
Alan Pearce alan@alanpearce.eu
Thu, 21 Jun 2018 11:28:59 +0200
1 files changed, 4 insertions(+), 0 deletions(-)
jump to
M emacs/.emacs.d/main.el → emacs/.emacs.d/main.el
@@ -319,6 +319,10 @@ :config (progn (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