New option: +jump-search-browser-fn

This commit is contained in:
Henrik Lissner 2017-09-28 18:06:07 +02:00
parent 24f59d4b0e
commit dd58479a18
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395
2 changed files with 4 additions and 1 deletions

View File

@ -130,5 +130,5 @@ for the provider."
(when (string-empty-p search)
(user-error "The search query is empty"))
(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))))

View File

@ -29,6 +29,9 @@
"An alist that maps online resources to their search url or a function that
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
"TODO")