Improvements for emacs
Improvements for emacs

The window creation behaviour has changed, you can recover the old behaviour by putting the
following in your init.el:

    (add-to-list
     'display-buffer-alist
     '(\"*ghcid*\"
       (display-buffer-reuse-window   ;; First try to reuse an existing window
        display-buffer-at-bottom      ;; Then try a new window at the bottom
        display-buffer-pop-up-window) ;; Otherwise show a pop-up
       (window-height . 18)      ;; New window will be 18 lines
       ))

Improvements:

* Don't assume that nlinum-mode is available.
* Respect user configuration when displaying the buffer. Now it works with purpose-mode and custom
  `display-buffer-alist`s
* Automatically detect height of ghcid window.
* Use the standard `with-selected-window` to temporarily select the ghcid window.
* Use term-line-mode instead of term-char-mode, so the usual navigation shortcuts work in the ghcid
  buffer.
* Resets the directory of the ghcid process if you call `ghcid` again.
* Fix bug where the `next-error` would not always go the the right place in a file.

ndmitchell/ghcid