I’ve never been too pleased with the default behaviour of Backspace during
isearch. If the last key you hit was C-s, then it does the same as C-r
(albeit with less repetition), and if your match failed several characters ago,
you need to hit it that many times to get back on track. Fortunately, asmeurer
took the time to phrase this problem I barely realised I had.
delete the entire portion of isearch string that doesn’t match,
if everything matches, fallback on deleting last char instead of moving backwards.
Finally, John Mastro has yet another improvement for the command, which is the
one I’m using now. I’ll let you follow the link for the code, and just give you
the keybind you need for it to work.
Better backspace during isearch
20 Apr 2015, by Artur Malabarba.Emacs.SE Lessons post series
I’ve never been too pleased with the default behaviour of Backspace during
isearch
. If the last key you hit was C-s, then it does the same as C-r (albeit with less repetition), and if your match failed several characters ago, you need to hit it that many times to get back on track. Fortunately, asmeurer took the time to phrase this problem I barely realised I had.In response, Drew provides a command to:
isearch
string that doesn’t match,Finally, John Mastro has yet another improvement for the command, which is the one I’m using now. I’ll let you follow the link for the code, and just give you the keybind you need for it to work.
Tags: init.el, emacs,
Debug your Emacs init file with the Bug-Hunter »
« (Very Late) SX.el Announcement, and more launcher-map
Content © 2019, All rights reserved. Icons under CC3.0.