Skip to content

Commit 139b2db

Browse files
committed
Merge pull request #516 from tonyday567/hayoo-url
Added haskell-hayoo-url as a custom variable
2 parents 0c7f7c3 + 4c0a199 commit 139b2db

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

haskell-mode.el

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,6 +876,14 @@ is asked to show extra info for the items matching QUERY.."
876876
(hoogle-start-server)
877877
(error "hoogle is not installed")))))
878878

879+
(defcustom haskell-hayoo-url "http://hayoo.fh-wedel.de/?query=%s"
880+
"Default value for hayoo web site.
881+
"
882+
:group 'haskell
883+
:type '(choice
884+
(const :tag "fh-wedel.de" "http://hayoo.fh-wedel.de/?query=%s")
885+
string))
886+
879887
;;;###autoload
880888
(defun haskell-hayoo (query)
881889
"Do a Hayoo search for QUERY."
@@ -886,7 +894,7 @@ is asked to show extra info for the items matching QUERY.."
886894
(format "Hayoo query (default %s): " def)
887895
"Hayoo query: ")
888896
nil nil def))))
889-
(browse-url (format "http://holumbus.fh-wedel.de/hayoo/hayoo.html?query=%s" query)))
897+
(browse-url (format haskell-hayoo-url (url-hexify-string query))))
890898

891899
;;;###autoload
892900
(defalias 'hayoo 'haskell-hayoo)

0 commit comments

Comments
 (0)