Our newbie tips are our way of expressing emacs features we might otherwise take for granted. We hope they help beginners climb the learning curve faster. This particular tip is one that I wish I knew far sooner when I first started using emacs. Incremental searching with isearch-forward and isearch-backward (C-s and C-r) is crucial […]
Entries Tagged as 'isearch'
March 26th, 2007 by Ryan McGeary · 46 Comments
February 27th, 2007 by Ryan McGeary · 11 Comments
Zenspider gives us an excellent tip for extending incremental search. Add this to your emacs initialization: 1 2 3 4 5 6 (define-key isearch-mode-map (kbd "C-o") (lambda () (interactive) (let ((case-fold-search isearch-case-fold-search)) (occur (if isearch-regexp isearch-string (regexp-quote isearch-string)))))) This adds an extra keybinding to interactive search (C-s) that runs occur on the current search string/regexp, […]