General refactor & cleanup, across the board

This commit is contained in:
Henrik Lissner 2019-09-13 21:59:03 -04:00
parent 4ddc5c194b
commit 2d365619cd
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
35 changed files with 141 additions and 155 deletions

View file

@ -55,13 +55,13 @@
(defvar-local +magit--vc-is-stale-p nil)
;;;###autoload
(defun +magit|refresh-vc-state-maybe ()
(defun +magit-refresh-vc-state-maybe-h ()
"Update `vc' and `git-gutter' if out of date."
(when +magit--vc-is-stale-p
(+magit--refresh-vc-in-buffer (current-buffer))))
;;;###autoload
(add-hook 'doom-switch-buffer-hook #'+magit|refresh-vc-state-maybe)
(add-hook 'doom-switch-buffer-hook #'+magit-refresh-vc-state-maybe-h)
;;;###autoload
(defun +magit/quit (&optional _kill-buffer)