Skip to content

Instantly share code, notes, and snippets.

@cstrahan
Forked from nkpart/gist:cc852b43d948a33a04c8
Created February 28, 2016 23:25
Show Gist options
  • Save cstrahan/62966e1673db4fbb0975 to your computer and use it in GitHub Desktop.
Save cstrahan/62966e1673db4fbb0975 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