Created
December 15, 2023 07:40
-
-
Save rtrppl/06b01bd4521afe2c26c3c8e563ca81db to your computer and use it in GitHub Desktop.
kagi this
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun lt/kagi () | |
"Kagi the selected region if any, display a query prompt otherwise." | |
(interactive) | |
(browse-url | |
(concat | |
"https://kagi.com/search?q=" | |
(url-hexify-string (if mark-active | |
(buffer-substring (region-beginning) (region-end)) | |
(read-string "Kagi: ")))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment