[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Q about occur buffer/point

From: Matthias Meulien
Subject: Re: Q about occur buffer/point
Date: 29 May 2003 12:44:42 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.93

address@hidden (Kai Großjohann) wrote:

> (...) Hit C-h b in the *Occur* buffer for the key bindings. You'll
> find C-o, 

Only on recent version of emacs I guess... 

>From my init file :

(defun alt-occur-mode-view-occurrence ()
  "View the occurrence the current line describes."
  (let ((pos (occur-mode-find-occurrence)))
    (pop-to-buffer occur-buffer)
    (goto-char (marker-position pos))
    (pop-to-buffer "*Occur*")))

(add-hook 'occur-mode-hook
          '(lambda ()
             (setq truncate-lines t)
             (hl-line-mode 1)
             (define-key occur-mode-map "v" 'alt-occur-mode-view-occurrence)
             (define-key occur-mode-map "q" 'delete-window)))


reply via email to

[Prev in Thread] Current Thread [Next in Thread]