Created
November 1, 2016 19:29
-
-
Save jcf/c76bb9d7ac393bd4c51145dd7fa1ea69 to your computer and use it in GitHub Desktop.
Function to search from Emacs using DuckDuckGo.
This file contains hidden or 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
; DuckDuckGo | |
(defun duckduckgo-search (text) | |
"Search DuckDuckGo from Emacs." | |
(interactive "sSearch: ") | |
(browse-url | |
(concat "https://duckduckgo.com/?q=" | |
(replace-regexp-in-string " " "+" text)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment