From a8a48616fae1748bcd072c7ed5249a4a83886738 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Sat, 18 Jan 2014 16:36:18 +0900 Subject: [PATCH] add variable isdcv-interval --- emacs.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/emacs.el b/emacs.el index b73e604..f1a88a2 100644 --- a/emacs.el +++ b/emacs.el @@ -2336,6 +2336,9 @@ this is test, does not rename files." (defvar isdcv-prompt "> " "Prompt string for isdcv input.") +(defvar isdcv-interval 0.5 + "Time in second to show sdcv result for current input.") + (defvar isdcv-current-prompt-point nil "Point of beginning of current prompt.") (make-variable-buffer-local 'isdcv--current-prompt-point) @@ -2391,7 +2394,7 @@ Freeze current input and show next prompt." (current-buffer)) ;; do not duplicate timer (not isdcv--timer) - (setq isdcv--timer (run-with-idle-timer 1 + (setq isdcv--timer (run-with-idle-timer isdcv-interval t 'isdcv--timer-function))))