ndmitchell / ghcid

Very low feature GHCi based IDE
Other
1.13k stars 114 forks source link

Improvements for emacs #281

Closed yoricksijsling closed 5 years ago

yoricksijsling commented 5 years ago

I found the emacs mode quite buggy. These are the changes I've been using locally for a while now.

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:

Thanks for the pull request!

By raising this pull request you confirm you are licensing your contribution under all licenses that apply to this project (see LICENSE) and that you have no patents covering your contribution.

If you care, my PR preferences are at https://github.com/ndmitchell/neil#contributions, but they're all guidelines, and I'm not too fussy - you don't have to read them.

ndmitchell commented 5 years ago

@WraithM - can you review? Totally out of my depth here.

wraithm commented 5 years ago

@ndmitchell This is great! It works so much better than my version.

Thanks @yoricksijsling. Well done!

ndmitchell commented 5 years ago

Thanks!