From 458f09cbaad291c7d4b9a6f785c459429e8edf39 Mon Sep 17 00:00:00 2001 From: Jappie Klooster Date: Sun, 10 Mar 2019 18:12:04 +0100 Subject: [PATCH] Idea for making hoogle configurable by arg --- haskell-hoogle.el | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/haskell-hoogle.el b/haskell-hoogle.el index 62aaaaad7..9c03911d5 100644 --- a/haskell-hoogle.el +++ b/haskell-hoogle.el @@ -85,14 +85,13 @@ is asked to show extra info for the items matching QUERY.." (defun haskell-hoogle-start-server () "Start hoogle local server." (interactive) - (if (executable-find "hoogle") - (unless (haskell-hoogle-server-live-p) - (set 'haskell-hoogle-server-process - (start-process - haskell-hoogle-server-process-name - (get-buffer-create haskell-hoogle-server-buffer-name) - "hoogle" "server" "-p" (number-to-string haskell-hoogle-port-number)))) - (error "\"hoogle\" executable not found"))) + (unless (haskell-hoogle-server-live-p) + (set 'haskell-hoogle-server-process + (start-process + haskell-hoogle-server-process-name + (get-buffer-create haskell-hoogle-server-buffer-name) + haskell-hoogle-command "server" "-p" (number-to-string haskell-hoogle-port-number)))) + ) (defun haskell-hoogle-server-live-p () "Whether the hoogle server process is live."