summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2021-05-03 04:20:56 +0100
committerjao <jao@gnu.org>2021-05-03 04:20:56 +0100
commit2ad1c46e1c7ca13aa6098722d7fc3aef4ecb9f47 (patch)
treeb6326060b479d5f2bc14a54dd1d8430a5951d394
parentd34e74e2bbfb24b1406169874e97c7f34c0b744e (diff)
downloadelibs-2ad1c46e1c7ca13aa6098722d7fc3aef4ecb9f47.tar.gz
elibs-2ad1c46e1c7ca13aa6098722d7fc3aef4ecb9f47.tar.bz2
more haskell tweaks
-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