summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2021-02-06 22:26:59 -0500
committerKyle Meyer <kyle@kyleam.com>2021-06-12 01:10:42 -0400
commitd022da1d1c0904e6451bfe7be57823824ed69d08 (patch)
tree0ecc7366dbd222430fa847f54712c751fe9e03bb
parent2e6cb2a3a58cfd6f1348b25796d80753670ae5f8 (diff)
downloademacs.d-d022da1d1c0904e6451bfe7be57823824ed69d08.tar.gz
browse-url: Send some urls to EWW
-rw-r--r--init.el10
1 files changed, 9 insertions, 1 deletions
diff --git a/init.el b/init.el
index ca6729b..3ddb131 100644
--- a/init.el
+++ b/init.el
@@ -1513,7 +1513,15 @@
:init
(define-key km/external-map "b" #'browse-url)
:config
- (setq browse-url-browser-function 'browse-url-firefox))
+ (setq browse-url-browser-function
+ `(,(cons (rx string-start "https://"
+ (or "inbox.kyleam.com"
+ "lore.kernel.org"
+ "orgmode.org/list"
+ "public-inbox.org"
+ "yhetil.org"))
+ #'eww-browse-url)
+ ("." . browse-url-firefox))))
(use-package webjump
:config