unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Mike Ballard <dont_w@nt_spam.org>
Subject: Re: Q about occur buffer/point
Date: Thu, 29 May 2003 23:08:54 GMT	[thread overview]
Message-ID: <m23cixpcz0.fsf@west_f1.net> (raw)
In-Reply-To: m2r86ighgl.fsf@clarinde.localdomain


On Thu May 29, Matthias Meulien woke me from a deep sleep when he said:

<snip>

> 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)))
> 

Perfect!!  Thanks so much....

Mike
-- 

mike.ballard--at--earthlink.net

  "Play an accordion, go to jail.  It's the law!"

      reply	other threads:[~2003-05-29 23:08 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
2003-05-29 23:08     ` Mike Ballard [this message]

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m23cixpcz0.fsf@west_f1.net \
    --to=dont_w@nt_spam.org \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).