Browse Source

isearch-occur is included in emacs core upstream

Looks like it was originally incorporated in 2007,
6e3057bbed.

Technically this is bound to `M-s o` by default, but `C-o` is a nice shortcut.
custom
Charles Comstock 11 years ago
parent
commit
a8a83aeb5e
  1. 7
      core/prelude-global-keybindings.el

7
core/prelude-global-keybindings.el

@ -89,12 +89,7 @@
(global-set-key [remap kill-whole-line] 'prelude-kill-whole-line)
;; Activate occur easily inside isearch
(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))))))
(define-key isearch-mode-map (kbd "C-o") 'isearch-occur)
;; use hippie-expand instead of dabbrev
(global-set-key (kbd "M-/") 'hippie-expand)

Loading…
Cancel
Save