News for hackers. Stuff that matters.
Re:Ask HN: Little things/tools that improved your work or li... by gcv on Saturday October 10, 2009 @03:37PM (#873719)
After years of using Emacs, I only just discovered that incremental search works within the ordinary find-file (C-x C-f) function. Try it: C-x C-f, then C-r, and search for a piece of a filename you opened in the recent past. Try C-M-r, and it works with regexes, too.
Re:Ask HN: Little things/tools that improved your work or li... by DavidSJ on Saturday October 10, 2009 @05:13PM (#873858)
I think you mean M-R to search previous input. This works for just about any interactive input.
Re:Ask HN: Little things/tools that improved your work or li... by gcv on Sunday October 11, 2009 @01:33AM (#874364)
No, I mean reverse incremental search. M-r doesn't show matches as you type (at least not with Emacs 23 and my setup), but C-r does.
Re:Ask HN: Little things/tools that improved your work or li... by ams6110 on Saturday October 10, 2009 @09:30PM (#874162)
iswitchb-mode is a cool little thing I recently discovered. I somehow enabled it accidentally, was puzzled for a moment until I realized what it was doing, and now I love it.
Re:Ask HN: Little things/tools that improved your work or li... by zck on Sunday October 11, 2009 @03:12AM (#874448)
If you like iswitchb-mode, try out ido-mode (http://www.emacswiki.org/emacs/InteractivelyDoThings). It's like iswitchb-mode, but it also works with C-x C-f. I assume it does more than that, but I haven't looked specifically for the differences. I don't think you should have both of them, though.
Re:Ask HN: Little things/tools that improved your work or li... by drewr on Saturday October 10, 2009 @04:00PM (#873757)
Is this Emacs 23-only? I don't get that behavior with 22.3.2.
Re:Ask HN: Little things/tools that improved your work or li... by gcv on Sunday October 11, 2009 @01:36AM (#874366)
Possibly. I didn't find this trick until recently, and I switched to Emacs 23 pretty much right after it came out.