main.el: Require browse-url

This fixes a potential load order issue
master
Pierre Neidhardt 2018-07-20 14:46:52 +02:00
parent 3152b24b70
commit c4844f9d57
1 changed files with 1 additions and 0 deletions

View File

@ -150,6 +150,7 @@
;; REVIEW: If xdg-open is not found, set Emacs URL browser to the environment browser,
;; or w3m if BROWSER is not set.
;; See https://debbugs.gnu.org/cgi/bugreport.cgi?bug=18986.
(require 'browse-url)
(setq browse-url-generic-program (or
(executable-find (or (getenv "BROWSER") "")) ; TODO: Still need this in Emacs 26?
(when (executable-find "xdg-mime")