help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: emulate readline


From: Eli Zaretskii
Subject: Re: emulate readline
Date: Wed, 06 Apr 2011 21:01:50 +0300

> From: fork <forkandwait@gmail.com>
> Date: Wed, 6 Apr 2011 17:04:26 +0000 (UTC)
> 
> 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.

Your wish has been granted!  In Emacs, this is invoked with M-s and
M-r.  That is

   M-x M-r psql RET

will show you a past command that matches "psql".



reply via email to

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