X-Git-Url: https://code.delx.au/gnu-emacs-elpa/blobdiff_plain/7bd2e96638843a28ee75e663856f417bdcaf1de2..e93367512080e540dc5dd126dfcb38b4a5e9415b:/diff-hl-amend.el diff --git a/diff-hl-amend.el b/diff-hl-amend.el index 3f65cb751..defb3f45e 100644 --- a/diff-hl-amend.el +++ b/diff-hl-amend.el @@ -1,14 +1,16 @@ +;; Copyright (C) 2012-2013 Free Software Foundation, Inc. + ;; Author: Dmitry Gutov ;; URL: https://github.com/dgutov/diff-hl -;; This file is not part of GNU Emacs. +;; This file is part of GNU Emacs. -;; This file is free software: you can redistribute it and/or modify +;; GNU Emacs is free software: you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by ;; the Free Software Foundation, either version 3 of the License, or ;; (at your option) any later version. -;; This file is distributed in the hope that it will be useful, +;; GNU Emacs is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;; GNU General Public License for more details. @@ -34,11 +36,8 @@ Currently only supports Git, Mercurial and Bazaar." :lighter " Amend" (if diff-hl-amend-mode (progn - (if vc-mode - (diff-hl-amend-setup) - (add-hook 'find-file-hook 'diff-hl-amend-setup nil t)) + (diff-hl-amend-setup) (add-hook 'after-revert-hook 'diff-hl-amend-setup nil t)) - (remove-hook 'find-file-hook 'diff-hl-amend-setup t) (remove-hook 'after-revert-hook 'diff-hl-amend-setup t) (setq-local diff-hl-reference-revision nil)) (when diff-hl-mode