all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* modes and hooks...
@ 2003-06-17 21:38 Javier Oviedo
  2003-06-18 21:20 ` Kevin Rodgers
  0 siblings, 1 reply; 3+ messages in thread
From: Javier Oviedo @ 2003-06-17 21:38 UTC (permalink / raw)


Hello all:

I want to run a function, automatically, after occur-mode has completed and
a buffer of matches has been created, but I'm not sure how to do it. Is
there a occur-mode-exit-hook, or something of the sort, that I could use in
a add-hook statement? Is there a general rule of thumb about pre/post hooks?

Any help would be great. Thanks in advance!

Example:

;; run my function once occur-mode has completed and a buffer of matches has
been created.
(add-hook 'occur-mode-exit-hook 'my-occur-mode-function)


--
Javier

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: modes and hooks...
  2003-06-17 21:38 modes and hooks Javier Oviedo
@ 2003-06-18 21:20 ` Kevin Rodgers
  2003-06-19 16:57   ` Javier Oviedo
  0 siblings, 1 reply; 3+ messages in thread
From: Kevin Rodgers @ 2003-06-18 21:20 UTC (permalink / raw)


Javier Oviedo wrote:

> I want to run a function, automatically, after occur-mode has completed and
> a buffer of matches has been created, but I'm not sure how to do it. Is
> there a occur-mode-exit-hook, or something of the sort, that I could use in
> a add-hook statement? Is there a general rule of thumb about pre/post hooks?

If `M-x apropos RET occur.*hook RET' doesn't show anything useful, you can
always use advice(.el):

(defadvice occur (after activate joviedo)
   ...)

-- 
<a href="mailto:&lt;kevin.rodgers&#64;ihs.com&gt;">Kevin Rodgers</a>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: modes and hooks...
  2003-06-18 21:20 ` Kevin Rodgers
@ 2003-06-19 16:57   ` Javier Oviedo
  0 siblings, 0 replies; 3+ messages in thread
From: Javier Oviedo @ 2003-06-19 16:57 UTC (permalink / raw)


Thanks. I'll give it a try.

--
Javier


"Kevin Rodgers" <ihs_4664@yahoo.com> wrote in message
news:3EF0D798.9080408@yahoo.com...
> Javier Oviedo wrote:
>
> > I want to run a function, automatically, after occur-mode has completed
and
> > a buffer of matches has been created, but I'm not sure how to do it. Is
> > there a occur-mode-exit-hook, or something of the sort, that I could use
in
> > a add-hook statement? Is there a general rule of thumb about pre/post
hooks?
>
> If `M-x apropos RET occur.*hook RET' doesn't show anything useful, you can
> always use advice(.el):
>
> (defadvice occur (after activate joviedo)
>    ...)
>
> --
> <a href="mailto:&lt;kevin.rodgers&#64;ihs.com&gt;">Kevin Rodgers</a>
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-06-19 16:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-17 21:38 modes and hooks Javier Oviedo
2003-06-18 21:20 ` Kevin Rodgers
2003-06-19 16:57   ` Javier Oviedo

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.