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 |
|
| Key Binding | Description |
|
||||||
|-------------+----------------------------------------------------------------------------|
|
|-------------+----------------------------------------------------------------------------|
|
||||||
| ~SPC m h d~ | find or generate Haddock documentation for the identifier under the cursor |
|
| ~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 Hoogle lookup |
|
||||||
| ~SPC m h H~ | do a local Hoogle lookup |
|
| ~SPC m h H~ | do a local Hoogle lookup |
|
||||||
| ~SPC m h i~ | gets information for the identifier under the cursor |
|
| ~SPC m h i~ | gets information for the identifier under the cursor |
|
||||||
|
|
|
@ -13,13 +13,14 @@
|
||||||
'(
|
'(
|
||||||
cmm-mode
|
cmm-mode
|
||||||
company
|
company
|
||||||
company-ghc
|
|
||||||
company-cabal
|
company-cabal
|
||||||
|
company-ghc
|
||||||
flycheck
|
flycheck
|
||||||
flycheck-haskell
|
flycheck-haskell
|
||||||
ghc
|
ghc
|
||||||
haskell-mode
|
haskell-mode
|
||||||
haskell-snippets
|
haskell-snippets
|
||||||
|
helm-hoogle
|
||||||
hindent
|
hindent
|
||||||
shm
|
shm
|
||||||
))
|
))
|
||||||
|
@ -28,6 +29,13 @@
|
||||||
(use-package cmm-mode
|
(use-package cmm-mode
|
||||||
:defer t))
|
: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 ()
|
(defun haskell/post-init-flycheck ()
|
||||||
(spacemacs/add-flycheck-hook 'haskell-mode-hook))
|
(spacemacs/add-flycheck-hook 'haskell-mode-hook))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue