[Top][All Lists]

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

How to let C-s center the line

From: Timur Aydin
Subject: How to let C-s center the line
Date: 12 Nov 2003 16:58:06 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50


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)

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

reply via email to

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