Emacs: Fix browse-url-generic-program setting

master
Pierre Neidhardt 2017-07-02 18:40:24 +01:00
parent c2e91654bc
commit 8c7c6e0a87
2 changed files with 3 additions and 4 deletions

View File

@ -138,7 +138,8 @@ will always use the same cover per folder."
(emms-pause)))
;;; TODO: See if mpd is faster at building the db. Not so important.
;;; TODO: Delete entry from cache? See `emms-cache-del'. Not so important.
;;; TODO: Delete entry from cache? See `emms-cache-del'.
;;; TODO: Browse by album-artist? libtag has the field.
;; https://emacs.stackexchange.com/questions/10412/sort-by-artist-in-emms-with-compilation-albums/10435

View File

@ -140,9 +140,7 @@
;;; Make Emacs use environment browser, or w3m if BROWSER is not set.
(setq browse-url-generic-program
(executable-find
(let ((b (getenv "BROWSER")))
(if b b "w3m" )))
(or (executable-find (or (getenv "BROWSER") "")) (executable-find "w3m"))
browse-url-browser-function 'browse-url-generic)
;;; Default ispell dictionary. If not set, Emacs uses the current locale.