Created
April 13, 2012 02:38
-
-
Save jespada/2373131 to your computer and use it in GitHub Desktop.
emacs 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 search | |
(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