[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master e576ee2 40/42: Make diff-hl-flydiff-delay customizable
From: |
Dmitry Gutov |
Subject: |
[elpa] master e576ee2 40/42: Make diff-hl-flydiff-delay customizable |
Date: |
Wed, 09 Sep 2015 19:03:49 +0000 |
branch: master
commit e576ee2b7122e92a502d6173472516f51a787e6c
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>
Make diff-hl-flydiff-delay customizable
---
diff-hl-flydiff.el | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/diff-hl-flydiff.el b/diff-hl-flydiff.el
index 8ede0b5..53d31f7 100644
--- a/diff-hl-flydiff.el
+++ b/diff-hl-flydiff.el
@@ -30,6 +30,14 @@
(unless (require 'nadvice nil t)
(error "`diff-hl-flydiff-mode' requires Emacs 24.4 or newer"))
+(defgroup diff-hl-flydiff nil
+ "Highlight changes on the fly"
+ :group 'diff-hl)
+
+(defcustom diff-hl-flydiff-delay 0.3
+ "The idle delay in seconds before highlighting is updated."
+ :type 'number)
+
(defvar diff-hl-flydiff-modified-tick 0)
(defvar diff-hl-flydiff-timer)
(make-variable-buffer-local 'diff-hl-flydiff-modified-tick)
@@ -160,7 +168,7 @@ This requires the external program `diff' to be in your
`exec-path'."
#'diff-hl-flydiff/update-modified-tick)
(setq diff-hl-flydiff-timer
- (run-with-idle-timer 0.3 t #'diff-hl-update t)))
+ (run-with-idle-timer diff-hl-flydiff-delay t #'diff-hl-update
t)))
(advice-remove 'diff-hl-update #'diff-hl-flydiff/update)
(advice-remove 'diff-hl-overlay-modified #'ignore)
- [elpa] master 15aa2b8 26/42: Fix usage of "ignored", (continued)
- [elpa] master 15aa2b8 26/42: Fix usage of "ignored", Dmitry Gutov, 2015/09/09
- [elpa] master 2d40373 34/42: Update diff-hl-flydiff/vc-git-mode-line-string as per Emacs master, Dmitry Gutov, 2015/09/09
- [elpa] master a16b225 38/42: One fewer version check, Dmitry Gutov, 2015/09/09
- [elpa] master f300548 33/42: Merge pull request #50 from PythonNut/master, Dmitry Gutov, 2015/09/09
- [elpa] master 7428f4a 37/42: Reduce warnings during byte-compilation; don't error b-c in <24.4, Dmitry Gutov, 2015/09/09
- [elpa] master 418dbc7 32/42: Update docs to reflect new diff-hl-flydiff-mode, Dmitry Gutov, 2015/09/09
- [elpa] master 1558064 35/42: Reword the recent README changes, Dmitry Gutov, 2015/09/09
- [elpa] master 8d313db 36/42: Use --strip-trailing-cr, Dmitry Gutov, 2015/09/09
- [elpa] master 5068da4 39/42: Reindent, Dmitry Gutov, 2015/09/09
- [elpa] master 7fa7f09 41/42: Bump the version, Dmitry Gutov, 2015/09/09
- [elpa] master e576ee2 40/42: Make diff-hl-flydiff-delay customizable,
Dmitry Gutov <=
- [elpa] master a454a24 42/42: Merge commit '7fa7f099c7008d521dbbb57a1546f11535544536' from diff-hl, Dmitry Gutov, 2015/09/09