Emacs/API searching

From HaskellWiki
< Emacs
Revision as of 10:46, 18 May 2012 by Chrisdone (talk | contribs) (Added infobox.)

Jump to: navigation, search
Emacs for Haskell

Inferior Haskell processes
Automatic unit testing
Automatic building
API searching
Project navigation
Literate programming

Searching approaches


My newly installed system would not allow me to hoogle what I wanted (no xmonad or xmonadcontrib in hoogle) so someone suggested Hayoo.

(define-key haskell-mode-map (kbd "<f3>")

 (lambda ()
  (browse-url (format "http://holumbus.fh-wedel.de/hayoo/hayoo.html?query=%s&start"

region-or-word-at-point is available in the thing-at-pt+.el library.

Added 22-12-2008 - Promt for hayoo word

(defun rgr/hayoo()

 (let* ((default (region-or-word-at-point))

(term (read-string (format "Hayoo for the following phrase (%s): "

   (let ((term (if (zerop (length term)) default term)))
     (browse-url (format "http://holumbus.fh-wedel.de/hayoo/hayoo.html?query=%s&start" term)))))

(define-key haskell-mode-map (kbd "<f3>") 'rgr/hayoo)

Alternatively use the excellent browse-apropos-url stuff:



Note: Using and URL like this should work too and will give better results (not yet tested as I'm not an emacs user):


Tbh 00:56, 25 January 2009 (UTC)