Emacs: Invoke git-gutter-mode for textfiles too.

This commit is contained in:
tastytea 2020-04-20 00:01:07 +02:00
parent 3a95ae6157
commit 343130ce02
1 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
;;; git.el --- magit and stuff. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-04-18T16:15:18+0200>
;; Time-stamp: <2020-04-20T00:00:04+0200>
;;; Commentary:
@ -68,7 +68,8 @@
;; Show VC status in fringe.
(use-package git-gutter
:bind ("C-c G" . git-gutter:popup-hunk) ; Popup current diff hunk.
:hook (prog-mode . git-gutter-mode))
:hook ((prog-mode . git-gutter-mode)
(text-mode . git-gutter-mode)))
(provide 'programming/git)
;;; git.el ends here