summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--init.org24
1 files changed, 12 insertions, 12 deletions
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