Merge pull request #2634 from sebastiansturm/develop
Extend backend-agnostic vc functionality
This commit is contained in:
commit
594c047517
4 changed files with 31 additions and 8 deletions
|
@ -23,5 +23,12 @@
|
|||
("m" git-gutter:mark-hunk)
|
||||
("p" git-gutter:popup-hunk)
|
||||
("R" git-gutter:set-start-revision)
|
||||
("q" nil :color blue)
|
||||
("Q" (git-gutter-mode -1) :color blue))
|
||||
("q"
|
||||
(when (get-buffer git-gutter:popup-buffer)
|
||||
(kill-buffer (get-buffer git-gutter:popup-buffer)))
|
||||
:color blue)
|
||||
("Q"
|
||||
(progn (git-gutter-mode -1)
|
||||
(when (get-buffer git-gutter:popup-buffer)
|
||||
(kill-buffer (get-buffer git-gutter:popup-buffer))))
|
||||
:color blue))
|
||||
|
|
|
@ -51,6 +51,7 @@ is deferred until the file is saved. Respects `git-gutter:disabled-modes'."
|
|||
(git-gutter-mode +1)
|
||||
(remove-hook 'after-save-hook #'+vc-gutter-init-maybe-h 'local)))))))
|
||||
|
||||
(setq git-gutter:handled-backends '(git hg svn bzr))
|
||||
;; Disable in Org mode, as per
|
||||
;; <https://github.com/syl20bnr/spacemacs/issues/10555> and
|
||||
;; <https://github.com/syohex/emacs-git-gutter/issues/24>. Apparently, the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue