emacs-devel
[Top][All Lists]
Advanced

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

RE: C-g from Isearch (was: Isearch: retrieve last successful search stri


From: Drew Adams
Subject: RE: C-g from Isearch (was: Isearch: retrieve last successful search string from when you quit (`C-g'))
Date: Tue, 2 Oct 2012 09:22:42 -0700

> > `C-g' from Isearch does this:
> * If the current search is successful, `C-g' cancels the Isearch.
> * Else, `C-g' restores the last succesful search string.
> 
> And I, like Nix, don't like the second case.  I would like C-g to
> _always_ cancel the Isearch.  So IMO this behavior should be
> configurable.

It already is.  Just do this:

(define-key isearch-mode-map 'isearch-cancel)

And you also already have a key binding for this: `ESC ESC ESC'. 




reply via email to

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