jnpn,
@jnpn@mastodon.social avatar

users, do you guys think search-forward should place the caret at the end of a match or at the beginning ?

most of the time when I search for "def", it's to manipulate that term, not to insert after

louis,
@louis@emacs.ch avatar

@jnpn You could try this:

(define-key isearch-mode-map [(control return)]
#'isearch-exit-other-end)
(defun isearch-exit-other-end ()
"Exit isearch, at the opposite end of the string."
(interactive)
(isearch-exit)
(goto-char isearch-other-end))

louis,
@louis@emacs.ch avatar

@jnpn Usually the term is marked. Do you habe (delete-selection-mode 1) enabled?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • emacs
  • DreamBathrooms
  • magazineikmin
  • thenastyranch
  • modclub
  • everett
  • rosin
  • Youngstown
  • slotface
  • ethstaker
  • mdbf
  • kavyap
  • osvaldo12
  • InstantRegret
  • Durango
  • megavids
  • ngwrru68w68
  • tester
  • khanakhh
  • love
  • tacticalgear
  • cubers
  • GTA5RPClips
  • Leos
  • normalnudes
  • provamag3
  • cisconetworking
  • anitta
  • JUstTest
  • All magazines