search - Emacs: Is it possible to list all matching lines for a certain query string for marked files in dired? -
i found out m-x occur other day.
(how achieve code folding effects in emacs?)
i wonder if list matching lines in multiple files(or buffers) preferably marked in dired mode.
m-x multi-occur m-x multi-occur-in-matching-buffers
and also:
m-x multi-occur-in-this-mode (defun multi-occur-in-this-mode () "show lines matching regexp in buffers major mode." (interactive) (multi-occur (get-buffers-matching-mode major-mode) (car (occur-read-primary-args))))
Comments
Post a Comment