Make C-RET jump at the beginning of match after isearch
This commit is contained in:
parent
b957e6564e
commit
979a325f07
9
init.el
9
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 "<C-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))
|
||||
|
||||
;; Set up some global minor modes
|
||||
(show-paren-mode t)
|
||||
|
Loading…
Reference in New Issue
Block a user