init-engine-mode.el 950 B

1234567891011121314151617181920212223242526
  1. (require 'engine-mode)
  2. (engine-mode t)
  3. (defengine duckduckgo
  4. "https://duckduckgo.com/?q=%s"
  5. "d")
  6. (defengine wikipedia
  7. "http://www.wikipedia.org/search-redirect.php?language=en&go=Go&search=%s"
  8. "w")
  9. (defengine youtube
  10. "http://www.youtube.com/results?aq=f&oq=&search_query=%s"
  11. "y")
  12. (setq browse-url-browser-function 'browse-url-default-browser)
  13. ;;(setq browse-url-browser-function 'browse-url-default-browser)
  14. ;; engine-mode uses browse-url to open the URL it constructs. To change the browser that browse-url uses, you'll need to redefine the browse-url-browser-function variable.
  15. ;; For example, to use Emacs' built-in eww browser:
  16. ;; (setq browse-url-browser-function 'eww-browse-url)
  17. ;; The implementation of the browse-url-browser-function variable contains a comprehensive list of possible browsing functions. You can get to that by hitting C-h v browser-url-browser-function <RETURN> and following the link to browse-url.el.