M-x all-things-emacs

Entries Tagged as 'isearch'

Newbie Tip: isearch Word Yank

March 26th, 2007 by Ryan McGeary · 124 Comments

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 […]

[

Tags:isearch · newbie · quick · tips

Quick Tip: Add occur to isearch

February 27th, 2007 by Ryan McGeary · 87 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, […]

[

Tags:elisp · isearch · quick · tips