Set browse-url-generic-program

This commit is contained in:
Jeremy Dormitzer 2020-06-19 10:36:02 -04:00
parent 41e481abd4
commit 06be62d091

View File

@ -4298,6 +4298,11 @@ Browsing the web from Emacs. Relies on having [[http://w3m.sourceforge.net/][w3m
I mostly want `browse-url-at-point` to open stuff in Firefox, but in some cases I want it within Emacs: I mostly want `browse-url-at-point` to open stuff in Firefox, but in some cases I want it within Emacs:
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(setq browse-url-generic-program
(cond
((executable-find "open") "open")
((executable-fine "xdg-open" "xdg-open"))))
(defun browse-url-at-point-w3m () (defun browse-url-at-point-w3m ()
"Opens the URL at point in w3m" "Opens the URL at point in w3m"
(interactive) (interactive)