From: Matthias Meulien <cimosque@free.fr>
Subject: Re: Q about occur buffer/point
Date: 29 May 2003 12:44:42 +0200 [thread overview]
Message-ID: <m2r86ighgl.fsf@clarinde.localdomain> (raw)
In-Reply-To: 84y90qma14.fsf@lucy.is.informatik.uni-duisburg.de
kai.grossjohann@gmx.net (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."
(interactive)
(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)))
Bye,
--
Matthias
next prev parent reply other threads:[~2003-05-29 10:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-29 3:12 Q about occur buffer/point Mike Ballard
2003-05-29 8:28 ` Kai Großjohann
2003-05-29 10:44 ` Matthias Meulien [this message]
2003-05-29 23:08 ` Mike Ballard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2r86ighgl.fsf@clarinde.localdomain \
--to=cimosque@free.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.