;; I know that string is in my Emacs somewhere! (defun search-all-buffers (regexp) (interactive "sRegexp: ") (multi-occur-in-matching-buffers (rx string-start (not (any " "))) regexp t)) (global-set-key M-s 'search-all-buffers)