From: Dmitry Gutov Date: Wed, 6 Jan 2016 19:40:42 +0000 (+0300) Subject: diff-hl-flydiff-update: Check whether diff-hl-mode is enabled X-Git-Url: https://code.delx.au/gnu-emacs-elpa/commitdiff_plain/b674856b65a0ebcd5920a3cdc5a17409d3ecda0e diff-hl-flydiff-update: Check whether diff-hl-mode is enabled Closes #60 --- diff --git a/diff-hl-flydiff.el b/diff-hl-flydiff.el index 30a354390..94dbbd7f6 100644 --- a/diff-hl-flydiff.el +++ b/diff-hl-flydiff.el @@ -138,6 +138,7 @@ This requires the external program `diff' to be in your `exec-path'." (defun diff-hl-flydiff-update () (unless (or + (not diff-hl-mode) (= diff-hl-flydiff-modified-tick (buffer-modified-tick)) (file-remote-p default-directory)) (diff-hl-update)))