Refactor +evil-esc-hook
This commit is contained in:
parent
5d47be15ef
commit
85751c519b
5 changed files with 36 additions and 37 deletions
|
@ -25,8 +25,11 @@
|
|||
(add-hook 'focus-in-hook #'git-gutter:update-all-windows)
|
||||
|
||||
(after! evil
|
||||
;; Refresh git-gutter on ESC
|
||||
(add-hook '+evil-esc-hook #'git-gutter)))
|
||||
(defun +version-control|update-git-gutter ()
|
||||
"Refresh git-gutter on ESC. Return nil to prevent shadowing other
|
||||
`+evil-esc-hook' hooks."
|
||||
(ignore (git-gutter)))
|
||||
(add-hook '+evil-esc-hook #'+version-control|update-git-gutter t)))
|
||||
|
||||
|
||||
(def-package! git-timemachine
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue