help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: context around incremental search


From: jpkotta
Subject: Re: context around incremental search
Date: Fri, 8 Nov 2013 10:58:24 -0800 (PST)
User-agent: G2/1.0

Recenter after isearch finds a match:

(defun recenter-no-redraw (&optional arg)
  (interactive "P")
  (let ((recenter-redisplay nil))
    (recenter arg)))

;; recenter the cursor after finding a match
(defadvice isearch-search (after isearch-recenter activate)
  (when isearch-success
    (recenter-no-redraw)))


reply via email to

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