Auto-completion via company-ghc
This commit is contained in:
parent
7fa35b4c87
commit
338a597b58
1 changed files with 19 additions and 1 deletions
|
@ -9,7 +9,6 @@ last-updated: 2015-03-05
|
||||||
Incomplete. Need to add:
|
Incomplete. Need to add:
|
||||||
|
|
||||||
* Emacs:
|
* Emacs:
|
||||||
* tags-search (hasktags)
|
|
||||||
* haskell-mode + hlint
|
* haskell-mode + hlint
|
||||||
* stylish-haskell
|
* stylish-haskell
|
||||||
* Additional:
|
* Additional:
|
||||||
|
@ -208,3 +207,22 @@ in your project's root.
|
||||||
`haskell-mode` replaces standard `M-.` tag-search with it's own,
|
`haskell-mode` replaces standard `M-.` tag-search with it's own,
|
||||||
trying to search via ghci first, and only then via standard TAGS
|
trying to search via ghci first, and only then via standard TAGS
|
||||||
mechanism.
|
mechanism.
|
||||||
|
|
||||||
|
### Auto-completion via company-ghc
|
||||||
|
|
||||||
|
Auto-completion via [company-ghc](https://github.com/iquiw/company-ghc) is pretty simple. Put this to your `Cask`:
|
||||||
|
|
||||||
|
```elisp
|
||||||
|
(depends-on "company")
|
||||||
|
(depends-on "company-ghc")
|
||||||
|
```
|
||||||
|
|
||||||
|
Then put this to your `.emacs`:
|
||||||
|
|
||||||
|
```elisp
|
||||||
|
(require 'company)
|
||||||
|
(add-hook 'after-init-hook 'global-company-mode)
|
||||||
|
(add-to-list 'company-backends 'company-ghc)
|
||||||
|
```
|
||||||
|
|
||||||
|
Voila! Beautiful auto-complete from `ghc-mod` works like a charm.
|
||||||
|
|
Loading…
Reference in a new issue