diff options
author | Case Duckworth | 2021-05-19 12:41:16 -0500 |
---|---|---|
committer | Case Duckworth | 2021-05-19 12:41:16 -0500 |
commit | f8198ee81445476c8053bdfcd964d6d0ce5bd252 (patch) | |
tree | 50bc4d55c639dcbc7d3a1df45cd3201d73f6774e | |
parent | Remove unused variables (diff) | |
download | emacs-f8198ee81445476c8053bdfcd964d6d0ce5bd252.tar.gz emacs-f8198ee81445476c8053bdfcd964d6d0ce5bd252.zip |
Add Firefox to exec-path /before/ checking if it's available
-rw-r--r-- | init.el | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/init.el b/init.el index 0d0284d..6058eef 100644 --- a/init.el +++ b/init.el | |||
@@ -96,16 +96,17 @@ | |||
96 | (global-auto-revert-mode +1)) | 96 | (global-auto-revert-mode +1)) |
97 | 97 | ||
98 | (setup browse-url | 98 | (setup browse-url |
99 | (when (acdw/system :work) | ||
100 | (add-to-list 'exec-path "C:/Program Files/Mozilla Firefox")) | ||
101 | |||
99 | (setq-default browse-url-browser-function ; can be alist (regex . function) | 102 | (setq-default browse-url-browser-function ; can be alist (regex . function) |
100 | '(("." . eww-browse-url)) | 103 | '(("." . eww-browse-url)) |
101 | browse-url-secondary-browser-function | 104 | browse-url-secondary-browser-function |
102 | (if (executable-find "firefox") | 105 | (if (executable-find "firefox") ; prefer Firefox |
103 | 'browse-url-firefox | 106 | 'browse-url-firefox |
104 | 'browse-url-default-browser) | 107 | 'browse-url-default-browser) |
105 | browse-url-new-window-flag t | 108 | browse-url-new-window-flag t |
106 | browse-url-firefox-new-window-is-tab t) | 109 | browse-url-firefox-new-window-is-tab t)) |
107 | (when (acdw/system :work) | ||
108 | (add-to-list 'exec-path "C:/Program Files/Mozilla Firefox"))) | ||
109 | 110 | ||
110 | (setup buffers | 111 | (setup buffers |
111 | (:global "C-x k" acdw/kill-a-buffer)) | 112 | (:global "C-x k" acdw/kill-a-buffer)) |