http://www.perlmonks.org?node_id=539546


in reply to Re: Emacs shows xrefs in code but needs an interface that's good for humans
in thread Emacs shows xrefs in code but needs an interface that's good for humans

I've found this little gem makes occur quite a bit more useful:
(defun isearch-occur () "Invoke `occur' from within isearch." (interactive) (let ((case-fold-search isearch-case-fold-search)) (occur (if isearch-regexp isearch-string (regexp-quote isearch-str +ing))))) (define-key isearch-mode-map (kbd "C-o") 'isearch-occur)
Then you can isearch to the word you want, hit C-w to grab the rest of it, then C-o to get a list of occurrences.
  • Comment on Re^2: Emacs shows xrefs in code but needs an interface that's good for humans
  • Download Code