mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-14 15:46:56 -05:00
New option: +jump-search-browser-fn
This commit is contained in:
@@ -130,5 +130,5 @@ for the provider."
|
|||||||
(when (string-empty-p search)
|
(when (string-empty-p search)
|
||||||
(user-error "The search query is empty"))
|
(user-error "The search query is empty"))
|
||||||
(setq +jump--online-last provider)
|
(setq +jump--online-last provider)
|
||||||
(browse-url (format url (url-encode-url search))))
|
(funcall +jump-search-browser-fn (format url (url-encode-url search))))
|
||||||
('error (setq +jump--online-last nil))))
|
('error (setq +jump--online-last nil))))
|
||||||
|
@@ -29,6 +29,9 @@
|
|||||||
"An alist that maps online resources to their search url or a function that
|
"An alist that maps online resources to their search url or a function that
|
||||||
produces an url. Used by `+jump/online'.")
|
produces an url. Used by `+jump/online'.")
|
||||||
|
|
||||||
|
(defconst +jump-search-browser-fn #'browse-url
|
||||||
|
"Function to use to open search urls.")
|
||||||
|
|
||||||
(defvar +jump-function-alist nil
|
(defvar +jump-function-alist nil
|
||||||
"TODO")
|
"TODO")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user