Centers evil search results vertically on a page
This commit is contained in:
parent
b757f26394
commit
bcde7fabc4
1 changed files with 10 additions and 0 deletions
|
@ -334,6 +334,16 @@
|
|||
(setq evil-replace-state-cursor '("VioletRed3" bar))
|
||||
(setq evil-operator-state-cursor '("VioletRed3" hollow))
|
||||
(evil-ex-define-cmd (kbd "w") 'save-buffer-always)
|
||||
|
||||
;; center search results
|
||||
(defadvice evil-search-next
|
||||
(after center-evil-search-next)
|
||||
(call-interactively 'evil-scroll-line-to-center))
|
||||
|
||||
(defadvice evil-search-previous
|
||||
(after center-evil-search-previous)
|
||||
(call-interactively 'evil-scroll-line-to-center))
|
||||
|
||||
(add-hook 'org-mode-hook 'evil-local-mode))
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue