You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I made a little transient interface for isearch, I would like to think this is a good addition to the guide.
This would my setup for isearch, that I would replace the advice version with.
(defun my/isearch ()
"Isearch with transient map interface."
(interactive)
(isearch-forward-regexp nil nil)
(set-transient-map
(let ((map (make-sparse-keymap)))
(define-key map "n" 'isearch-repeat-forward)
(define-key map "N" 'isearch-repeat-backward)
map)
t
(lambda () ; cleanup
(lazy-highlight-cleanup 'force)
(when (cdr isearch-cmds) ; avoid exiting twice
(isearch-exit)))))
I have used n and N as an evil user, which may be best changed to n and p for others.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I made a little transient interface for
isearch
, I would like to think this is a good addition to the guide.This would my setup for
isearch
, that I would replace the advice version with.I have used
n
andN
as an evil user, which may be best changed ton
andp
for others.Edit: added
isearch-mode
check before exitBeta Was this translation helpful? Give feedback.
All reactions