M-x all-things-emacs

Entries Tagged as 'isearch'

Newbie Tip: isearch Word Yank

March 26th, 2007 by Ryan McGeary · 3 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 […]

[Read more →]

Tags:isearch · newbie · quick · tips

Quick Tip: Add occur to isearch

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

[Read more →]

Tags:elisp · isearch · quick · tips