Skip to content

Instantly share code, notes, and snippets.

@shajra
Forked from nkpart/gist:cc852b43d948a33a04c8
Last active August 29, 2015 14:27
Show Gist options
  • Save shajra/d383179fbf260b4e5978 to your computer and use it in GitHub Desktop.
Save shajra/d383179fbf260b4e5978 to your computer and use it in GitHub Desktop.
Using ghcid inside of emacs
Pieces you need:
* emacs
* ghcid
ghcid needs to know the height of the terminal, we'll set it explicitly
height = (window-height) - (scroll-margin) - 1
set this height as your term-buffer-maximum-size
(setq term-buffer-maximum-size XXX)
Start an ansi-term session using bash
SPC-'
run ghcid with this height, in your project root
ghcid -c "cabal repl" -h HEIGHT
turn on compilation-minor-mode in the buffer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment