summary refs log tree commit diff stats
path: root/lisp/+browse-url.el
diff options
context:
space:
mode:
authorCase Duckworth2021-12-31 15:45:31 -0600
committerCase Duckworth2021-12-31 15:45:31 -0600
commita5d0c182a514d567bebf99a3fc6a0470f9c06166 (patch)
tree38c9d4e18aef22ad1c156c7b2c5b79b95b4e8c46 /lisp/+browse-url.el
parentAdd package-lint-flymake (diff)
downloademacs-a5d0c182a514d567bebf99a3fc6a0470f9c06166.tar.gz
emacs-a5d0c182a514d567bebf99a3fc6a0470f9c06166.zip
Better setup secondary-browser urls
Diffstat (limited to 'lisp/+browse-url.el')
-rw-r--r--lisp/+browse-url.el11
1 files changed, 11 insertions, 0 deletions
diff --git a/lisp/+browse-url.el b/lisp/+browse-url.el index d073d50..83f43cf 100644 --- a/lisp/+browse-url.el +++ b/lisp/+browse-url.el
@@ -63,6 +63,17 @@ named NAME, defaulting to \"+browse-url-with-VIEWER\", and the variable
63 "Image URL: " 63 "Image URL: "
64 :name "+browse-image-with-mpv") 64 :name "+browse-image-with-mpv")
65 65
66;;; Easily add extra domains to open in `browse-url-secondary-browser-function'
67;; I like to open most websites in eww, but a lot of website on the modern web
68;; just make that hard to do. Right now I have a list in `browse-url-handlers'
69;; with domains in an (rx (or ...)) form, but that's not super easy to config.
70;; With this custom setting, I'm making it a list that'll be way easier to
71;; customize.
72
73(defcustom +browse-url-secondary-browser-regexps nil
74 "List of URL regexps to open with `browse-url-secondary-browser-function'."
75 :type '(repeat regexp))
76
66;;; URL Transformation Functions 77;;; URL Transformation Functions
67;; There's a lot of bad websites out there. Luckily we can easily redirect 78;; There's a lot of bad websites out there. Luckily we can easily redirect
68;; requests to more privacy-respecting, or just less javascript-ridden, sites 79;; requests to more privacy-respecting, or just less javascript-ridden, sites