Skip to content

Instantly share code, notes, and snippets.

@jespada
Created April 13, 2012 02:38
Show Gist options
  • Save jespada/2373131 to your computer and use it in GitHub Desktop.
Save jespada/2373131 to your computer and use it in GitHub Desktop.
emacs duckduckgo
;;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