From 2ad1c46e1c7ca13aa6098722d7fc3aef4ecb9f47 Mon Sep 17 00:00:00 2001 From: jao Date: Mon, 3 May 2021 04:20:56 +0100 Subject: more haskell tweaks --- init.org | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'init.org') diff --git a/init.org b/init.org index 98d9484..c9b1432 100644 --- a/init.org +++ b/init.org @@ -2538,28 +2538,28 @@ (haskell-stylish-on-save nil)) :config - (require 'haskell-process) - (require 'haskell-hoogle) - (defun jao-haskell-hoogle (query) (interactive (hoogle-prompt)) (haskell-hoogle query t)) - :hook ((haskell-mode . interactive-haskell-mode) - (haskell-mode . haskell-doc-mode) - (haskell-mode . haskell-decl-scan-mode) - (haskell-mode . haskell-indentation-mode) - (haskell-mode . haskell-auto-insert-module-template)) + (dolist (h '(interactive-haskell-mode + haskell-doc-mode + haskell-decl-scan-mode + haskell-indentation-mode + haskell-auto-insert-module-template)) + (add-hook 'haskell-mode-hook h)) :bind (:map haskell-mode-map (("C-c C-d" . jao-haskell-hoogle) ("C-c h" . haskell-hoogle-lookup-from-local) - ("C-c C-c" . haskell-compile))) - :diminish ((interactive-haskell-mode . " λ") - (haskell-doc-mode . "") - (haskell-decl-scan-mode . ""))) + ("C-c C-c" . haskell-compile)))) (require 'haskell) + + (diminish 'interactive-haskell-mode " λ") + (diminish haskell-doc-mode) + (diminish haskell-decl-scan-mode) + (jao-define-attached-buffer "\\*hoogle\\*.*") ;; needs cabal install apply-refact -- cgit v1.2.3