haskell: add helm-hoogle, bind to mhf
This commit is contained in:
parent
3be33a5e51
commit
362b6998cf
|
@ -251,6 +251,7 @@ Documentation commands are prefixed by ~SPC m h~
|
|||
| Key Binding | Description |
|
||||
|-------------+----------------------------------------------------------------------------|
|
||||
| ~SPC m h d~ | find or generate Haddock documentation for the identifier under the cursor |
|
||||
| ~SPC m h f~ | do a helm-hoogle lookup |
|
||||
| ~SPC m h h~ | do a Hoogle lookup |
|
||||
| ~SPC m h H~ | do a local Hoogle lookup |
|
||||
| ~SPC m h i~ | gets information for the identifier under the cursor |
|
||||
|
|
|
@ -13,13 +13,14 @@
|
|||
'(
|
||||
cmm-mode
|
||||
company
|
||||
company-ghc
|
||||
company-cabal
|
||||
company-ghc
|
||||
flycheck
|
||||
flycheck-haskell
|
||||
ghc
|
||||
haskell-mode
|
||||
haskell-snippets
|
||||
helm-hoogle
|
||||
hindent
|
||||
shm
|
||||
))
|
||||
|
@ -28,6 +29,13 @@
|
|||
(use-package cmm-mode
|
||||
:defer t))
|
||||
|
||||
(when (configuration-layer/layer-usedp 'spacemacs-helm)
|
||||
(defun haskell/init-helm-hoogle ()
|
||||
(use-package helm-hoogle
|
||||
:defer t
|
||||
:init
|
||||
(spacemacs/set-leader-keys-for-major-mode 'haskell-mode "hf" 'helm-hoogle))))
|
||||
|
||||
(defun haskell/post-init-flycheck ()
|
||||
(spacemacs/add-flycheck-hook 'haskell-mode-hook))
|
||||
|
||||
|
|
Loading…
Reference in a new issue