Skip to content

Instantly share code, notes, and snippets.

@jcf
Created November 1, 2016 19:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jcf/c76bb9d7ac393bd4c51145dd7fa1ea69 to your computer and use it in GitHub Desktop.
Save jcf/c76bb9d7ac393bd4c51145dd7fa1ea69 to your computer and use it in GitHub Desktop.
Function to search from Emacs using DuckDuckGo.
; 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