[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: emulate readline

From: Richard Riley
Subject: Re: emulate readline
Date: Wed, 06 Apr 2011 21:06:50 +0200
User-agent: Gnus/5.110016 (No Gnus v0.16) Emacs/23.2 (gnu/linux)

address@hidden writes:

> fork <address@hidden> writes:
>> Is there a way to get the behavior of this (super cool) 
>> readline behavior in the minibuffer?  
>> In my .inputrc I have this:
>> "\e[A": history-search-backward
>> "\e[B": history-search-forward
>> "\eOA": history-search-backward
>> "\eOB": history-search-forward
>> So in bash I can type "ps", hit the up-arrow, and get the most recent
>>  command that started with these two letters (e.g. "psql -D foobar").  
>> The next time I hit up-arrow, I get "psql -U fork -D forksdb", etc.
>> I would like to type M-x in emacs, then cycle through previous
>>  commands like this.
> M-p

How do you make M-p work like bash filtered history (C-r, C-n from bash
line) as requested in the op?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]