diff options
author | jao <jao@gnu.org> | 2021-05-03 04:20:56 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2021-05-03 04:20:56 +0100 |
commit | 2ad1c46e1c7ca13aa6098722d7fc3aef4ecb9f47 (patch) | |
tree | b6326060b479d5f2bc14a54dd1d8430a5951d394 | |
parent | d34e74e2bbfb24b1406169874e97c7f34c0b744e (diff) | |
download | elibs-2ad1c46e1c7ca13aa6098722d7fc3aef4ecb9f47.tar.gz elibs-2ad1c46e1c7ca13aa6098722d7fc3aef4ecb9f47.tar.bz2 |
more haskell tweaks
-rw-r--r-- | init.org | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -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 |