Questions tagged [idle-timer]

The tag has no usage guidance.

1
vote
1answer
24 views

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 ...
0
votes
2answers
49 views

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)?
0
votes
1answer
84 views

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 ...
0
votes
2answers
52 views

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 ...
0
votes
1answer
31 views

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 ...
2
votes
1answer
147 views

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 ...
6
votes
2answers
519 views

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 ...
0
votes
0answers
34 views

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 ...
2
votes
1answer
114 views

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 ...
1
vote
1answer
506 views

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 ...
6
votes
3answers
325 views

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 ...
4
votes
1answer
76 views

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 (...
10
votes
2answers
349 views

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 ...