about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2021-05-21 17:58:53 -0500
committerCase Duckworth2021-05-21 17:58:53 -0500
commit03abc9caf46f16461fada41a8b4714d8fc22f3bf (patch)
tree79b05cb5dda792854ddcdf5944434c1d9826e98f
parentChange branch of gemini-write back to og (diff)
parentAdapt to deprecated variable (diff)
downloademacs-03abc9caf46f16461fada41a8b4714d8fc22f3bf.tar.gz
emacs-03abc9caf46f16461fada41a8b4714d8fc22f3bf.zip
Merge branch 'main' of https://tildegit.org/acdw/emacs
-rw-r--r--init.el13
1 files changed, 9 insertions, 4 deletions
diff --git a/init.el b/init.el index fa67e36..f215f9d 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))