From f8198ee81445476c8053bdfcd964d6d0ce5bd252 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Wed, 19 May 2021 12:41:16 -0500 Subject: Add Firefox to exec-path /before/ checking if it's available --- init.el | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'init.el') diff --git a/init.el b/init.el index 0d0284d..6058eef 100644 --- a/init.el +++ b/init.el @@ -96,16 +96,17 @@ (global-auto-revert-mode +1)) (setup browse-url + (when (acdw/system :work) + (add-to-list 'exec-path "C:/Program Files/Mozilla Firefox")) + (setq-default browse-url-browser-function ; can be alist (regex . function) '(("." . eww-browse-url)) browse-url-secondary-browser-function - (if (executable-find "firefox") + (if (executable-find "firefox") ; prefer Firefox 'browse-url-firefox 'browse-url-default-browser) browse-url-new-window-flag t - browse-url-firefox-new-window-is-tab t) - (when (acdw/system :work) - (add-to-list 'exec-path "C:/Program Files/Mozilla Firefox"))) + browse-url-firefox-new-window-is-tab t)) (setup buffers (:global "C-x k" acdw/kill-a-buffer)) -- cgit 1.4.1-21-gabe81