about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2021-05-21 08:34:52 -0500
committerCase Duckworth2021-05-21 08:34:52 -0500
commitdf1f255780956885c2a11dc51bd5f6bc89c2e594 (patch)
tree71d847fc67a32948ee136328e4d755e8ad2fc143
parentMerge branch 'main' of https://tildegit.org/acdw/emacs (diff)
downloademacs-df1f255780956885c2a11dc51bd5f6bc89c2e594.tar.gz
emacs-df1f255780956885c2a11dc51bd5f6bc89c2e594.zip
Adapt to deprecated variable
-rw-r--r--init.el13
1 files changed, 9 insertions, 4 deletions
diff --git a/init.el b/init.el index cf69c1b..864c4ff 100644 --- a/init.el +++ b/init.el
@@ -99,14 +99,19 @@
99 (when (acdw/system :work) 99 (when (acdw/system :work)
100 (add-to-list 'exec-path "C:/Program Files/Mozilla Firefox")) 100 (add-to-list 'exec-path "C:/Program Files/Mozilla Firefox"))
101 101
102 (setq-default browse-url-browser-function ; can be alist (regex . function) 102 (setq-default browse-url-secondary-browser-function
103 '(("." . eww-browse-url))
104 browse-url-secondary-browser-function
105 (if (executable-find "firefox") ; prefer Firefox 103 (if (executable-find "firefox") ; prefer Firefox
106 'browse-url-firefox 104 'browse-url-firefox
107 'browse-url-default-browser) 105 'browse-url-default-browser)
108 browse-url-new-window-flag t 106 browse-url-new-window-flag t
109 browse-url-firefox-new-window-is-tab t)) 107 browse-url-firefox-new-window-is-tab t)
108
109 ;; `browse-url-browser-function' as an alist is deprecated in Emacs 28 for
110 ;; `browse-url-handlers'.
111 (set-default (if (version<= emacs-version "28")
112 'browse-url-browser-function
113 'browse-url-handlers)
114 '(("." . eww-browse-url))))
110 115
111(setup buffers 116(setup buffers
112 (:global "C-x k" acdw/kill-a-buffer)) 117 (:global "C-x k" acdw/kill-a-buffer))