Function: moccur-mode

moccur-mode is an interactive and byte-compiled function defined in hmoccur.el.

Signature

(moccur-mode)

Documentation

Major mode for output from M-x moccur (moccur).

Move point to one of the items in this buffer, then use M-x moccur-to (moccur-to) to go to the occurrence on the current line. M-x moccur-mode-display-occurrence (moccur-mode-display-occurrence) displays but does not select the occurrence.

In addition to any hooks its parent mode special-mode might have run, this mode runs the hook moccur-mode-hook, as the final or penultimate step during initialization.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hmoccur.el
(define-derived-mode moccur-mode special-mode "Moccur"
  "Major mode for output from \\[moccur].
\\<moccur-mode-map>Move point to one of the items in this buffer, then use
\\[moccur-to] to go to the occurrence on the current line.
\\[moccur-mode-display-occurrence] displays but does not select the occurrence.

\\{moccur-mode-map}"
  (kill-all-local-variables)
  (use-local-map moccur-mode-map)
  (setq major-mode 'moccur-mode)
  (setq mode-name "Moccur"))