all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to let C-s center the line
@ 2003-11-12 14:58 Timur Aydin
  2003-11-12 15:58 ` Mario Domgörgen
  2003-11-12 20:40 ` Kevin Rodgers
  0 siblings, 2 replies; 3+ messages in thread
From: Timur Aydin @ 2003-11-12 14:58 UTC (permalink / raw)


Hi,

I am trying to advice the isearch-forward function so that when I
search for a string and that string is found in the buffer, I want
that line to be centered. When I hit C-s again to find the next
instance of the string, that line should also be centered.

Here is what I wrote in the scratch buffer:

(defadvice isearch-forward (after my-isearch-forward-with-center activate)
        (recenter))

Then I have evaluated this, but C-s behaves exactly the same was as before...

Is this the proper way of achieving my goal, or am I way off?

-- 
Timur Aydin

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

end of thread, other threads:[~2003-11-12 20:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-12 14:58 How to let C-s center the line Timur Aydin
2003-11-12 15:58 ` Mario Domgörgen
2003-11-12 20:40 ` Kevin Rodgers

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.