Skip to content

Commit

Permalink
Doc what Emacs packages work w/IHP, how to get ghci path of direnv
Browse files Browse the repository at this point in the history
  • Loading branch information
unhammer committed Oct 14, 2020
1 parent 772c354 commit 2c407e3
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion Guide/editors.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,18 @@ Works great already out of the box.

Recommended packages:
- `Nix` for syntax highlighting of nix files
- `Direnv` to load the `.envrc` file of the project.
- `Direnv` to load the `.envrc` file of the project.

## Using IHP with Emacs

Install the following packages from [Melpa](https://melpa.org/#/getting-started):
- `dante` – gives IDE features via ghci, see https://github.com/jyp/dante#installation
- `direnv-mode` – lets haskell-mode and dante-mode find the PATH to ghci, see https://github.com/wbolster/emacs-direnv#installation
- `attrap` (optional) – apply fixes at point, see https://github.com/jyp/attrap

and put a `.dir-locals.el` file in your project root with:
```emacs-lisp
((nil
(dante-repl-command-line . ("ghci"))
(haskell-process-type . ghci)))
```

0 comments on commit 2c407e3

Please sign in to comment.