diff --git a/init.el b/init.el index 6ef61c0..b053a11 100644 --- a/init.el +++ b/init.el @@ -604,6 +604,15 @@ (global-set-key (kbd "C-x C-r") 'rename-current-buffer-file) (global-set-key (kbd "C-x C-d") 'delete-current-buffer-file) (global-set-key (kbd "C-x ~") 'toggle-char-case) +(define-key isearch-mode-map (kbd "") + #'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)) ;; Set up some global minor modes (show-paren-mode t)