]> code.delx.au - gnu-emacs-elpa/blobdiff - diff-hl-amend.el
diff-hl-amend: Add explicit (require)
[gnu-emacs-elpa] / diff-hl-amend.el
index 9967341a9ed3a5578f657f92ac9a65f5f4432521..5accf3bc0b46b39e8d2c0d9abd808ead5f616485 100644 (file)
@@ -23,6 +23,8 @@
 
 ;;; Code:
 
+(require 'diff-hl)
+
 ;;;###autoload
 (define-minor-mode diff-hl-amend-mode
   "Show changes against the second-last revision in `diff-hl-mode'.
@@ -33,7 +35,7 @@ Currently only supports Git, Mercurial and Bazaar."
   (if diff-hl-amend-mode
       (progn
         (if vc-mode
-            (diff-hl-amend-set)
+            (diff-hl-amend-setup)
           (add-hook 'find-file-hook 'diff-hl-amend-setup nil t))
         (add-hook 'after-revert-hook 'diff-hl-amend-setup nil t))
     (remove-hook 'find-file-hook 'diff-hl-amend-setup t)