Skip to main content

Questions tagged [idle-timer]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
2 answers

run c-c c-k after edit text automatically

I would like to config emacs to run c-c c-k command after edit text happen and delay 3 secs. if edit happen within 3 secs, then no need to run the command. if edit happened then after 3 secs not edit ...
lucky1928's user avatar
  • 1,668
0 votes
2 answers

Is post-command-hook or idle timer better for doing something when the user becomes idle?

Let's say I want to write a mode which updates the display (e.g. adds some annotation) when the user edits the buffer or just moves around. What is the recommended way to implement this? Using post-...
Tom's user avatar
  • 1,270
0 votes
1 answer

Is there a general way to delay computing & displaying mode-line text?

Some things I'd like to show in the mode-line are quite expensive to compute, so I'd rather use an idle timer. Is there a general way to do this? or does this need to be added individually? (using a ...
ideasman42's user avatar
  • 8,846
1 vote
0 answers

Semantic Idle Service Error semantic-idle-summary-idle-function

Context Hey, I've discovered semantic and how useful it is when writing coding, it provides some handy features. I'm mostly using it for C/C++ programming, although there's a bug that kept on showing, ...
0x0584's user avatar
  • 121
1 vote
1 answer

How to temporarily disable/reset idle timers?

I have a package which uses mouse motion, currently the idle timers aren't reset on mouse motion - causing idle timers to run, even when from a user perspective - Emacs is not idle. How can I stop ...
ideasman42's user avatar
  • 8,846
1 vote
0 answers

Get time since last keystroke

I would like to know how many seconds have passed since the last keystroke (or character that showed up in the screen, whatever is easier). Is there a timer that is associated to self-insert-command? ...
scaramouche's user avatar
  • 1,754
1 vote
1 answer

How to block output of a command run with via `run-with-idle-timer`?

I use (run-with-idle-timer 45 t 'org-save-all-org-buffers) to automatically save all org-mode buffers when I am idling for 45 seconds. What I don't like about this is that it prints "All org-mode ...
CrabMan's user avatar
  • 275
0 votes
2 answers

Tracking time spent typing in a buffer

Say if I’ve a buffer, is there a package or hack to track time that’s spent typing/editing on this buffer (ignoring idle time)?
user69055's user avatar
1 vote
1 answer

Count down timer and org

count down timer This code starts a count down timer every time org file is opened , but asks for a permission to reset timer every time . Can it be automated, meaning it should start counting as soon ...
Vaibhav's user avatar
  • 583
0 votes
2 answers

Setting and clearing an "is-idle" variable when going in and out of idle mode?

I understand in general about idle timers in emacs, but I'm having trouble figuring out how to do the following ... I want to set an is-idle variable to t when emacs is in an idle state, and I want ...
HippoMan's user avatar
  • 616
0 votes
1 answer

pabbrev-mode idle timer error

I have installed again pabbrev and whenever I activate the mode I constantly get theses 2 errors. Error running timer ‘pabbrev-idle-timer-function’: (invalid-function pabbrev-debug-message) Error ...
DJJ's user avatar
  • 762
3 votes
1 answer

force-window-update vs redisplay

During idle time with run-with-idle-timer I parse text around a point and update header-line-format. Unfortunately I can't see update to header line unless I type any key. So I should trigger ...
gavenkoa's user avatar
  • 3,462
7 votes
2 answers

Looking for something like a `first-keypress-in-a-while-hook`

Suppose that I have an Emacs session running, and that I step away from my computer for, say, 20 minutes. Upon returning to my Emacs session, at some point I will press some key while the Emacs ...
kjo's user avatar
  • 3,257
1 vote
0 answers

mode-specific idle timer?

I have my idle timer which saves the current buffer automatically just once when idle for three seconds. It's handy but when I stop typing while in helm, it opens up a prompt that asks me where to ...
stacko's user avatar
  • 1,597
3 votes
1 answer

Effect of multiple idle timers

Suppose I set two idle timers (run-with-idle-timer 3 nil #'function1) (run-with-idle-timer 3 nil #'function2) What is the effect? After roughly 3 seconds will emacs run function1 and then wait 3 ...
Andrew Swann's user avatar
  • 3,566
1 vote
1 answer

Rebuilding Org Agenda Buffer With Timer

I am trying to rebuild my Org Agenda buffer with a timer. I am trying to do it like this: (defun renewOrgBuffer () (interactive) (dolist (buffer (buffer-list)) (with-current-buffer buffer ...
Jesse's user avatar
  • 267
8 votes
3 answers

Buffer local idle-timer

I would like to use an idle timer that is local to the current buffer in one of my packages. However, I can't seem to find out how. How can I create (or fake) the behavior of a buffer local idle ...
PythonNut's user avatar
  • 10.4k
4 votes
1 answer

How can I test an idle timer with ERT?

Say I have a function that is called on an idle timer: (defun tmp:create () (mkdir "test")) (run-with-idle-time 3 nil #'tmp:create) How can I test that this function works? Using something like (...
Sean Allred's user avatar
  • 6,951
12 votes
4 answers

Make use of an empty echo area to display information

The echo area is empty most of the time, which makes me think that I could use it to display some information. For example, org-clock displays the current task, the remaining time and the total ...
T. Verron's user avatar
  • 4,293