.editrc Tidbit for ghci

Paul R. Brown @ 2008-12-03T05:48:03Z

The only thing that I lost in the transition between readline in GHC 6.8 and editline in GHC 6.10 was backwards history search in ghci bound to ^R. I use that particular feature quite a bit, so that had a big negative impact on my productivity.

Here's how to get it back. Create a file in your home directory called .editrc with the following contents:

edit on
bind ^R em-inc-search-prev

The analogous setting for forward search (bind ^S em-inc-search-next) doesn't work for some reason, but that's not one that I'm going to miss.

Meta

Tags: (tag) (tag) (tag) (tag)

(comment bubbles) 1 comment
1280 direct views

Comment from Mark @ 2008-12-07T05:26:17Z # permalink

oh, awesome. thanks, that's been itching.