Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [timers]

The tag has no usage guidance.

2
votes
1answer
24 views

Toggle timer function

I want to write a function that starts a timer if timer does not exists or stop it if that one exists. I mean something like: (defun toggle-mytimer () (interactive) (if (timerp TIMER_NAME) ...
1
vote
1answer
37 views

Prevent Emacs from messaging when it writes recentf

I've configured Emacs to save recentf every five minutes by using this code: (run-at-time nil (* 5 60) 'recentf-save-list) It works great, but after writing recentf Emacs feels it has to tell me ...
1
vote
1answer
24 views

Time-of-day triggers

How can I set timers in Emacs to trigger at certain times of day? Midnight mode adds hooks for a single "midnight" time, but I would like to create separate hooks for multiple clock times.
0
votes
0answers
24 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
0answers
42 views

Monitoring and restarting background processes in Emacs

I have a background process to sync and index email. The two function calls in there, (mail-sync) and (mail-index) are calls with start-process. I then run the mail-background function periodically ...
1
vote
0answers
123 views

Enabling Company CAPF backend with timer in Major Mode

I've be working on a new major mode for a DSL. I'm planning to use the CAPF backend for company mode and would like to provide the integration. The completion at point functions produce the correct ...
1
vote
1answer
40 views

Change buffer displayed in window after x amount of time

I find myself switching between buffers constantly to double check activity in other buffers. Is it possible for windows to display different buffers after x amount of time? In other words can I get "...
3
votes
1answer
265 views

Error running timer “show-paren-function” when displaying matching line in message/mini buffer

I want to display the line contains matching bracket in the message/mini buffer at the bottom of emacs. I found some code on emacs Wiki, after put it in init file, emacs do show the maching line in ...
6
votes
3answers
85 views

How to detect if `read-event` or `y-or-n-p` is running?

In haskell-doc-mode we have a timer that shows useful tips in minibuffer when cursor is idle for a moment. In other part of Haskell Mode there is code asking questions using y-or-n-p or read-event. ...
9
votes
2answers
333 views

How to set temporary halt after C-x C-c?

If i run C-x C-c in emacs, it will close immediately. If i set confirm-kill-emacs to y-or-n-p it will ask for confirmation before closing. Instead of y-or-n-p, I want to set some temporary timer for ...
0
votes
1answer
235 views

run-at-time under certain circumstance [closed]

I need to backup few files on my Mac, and it can be done inside of Emacs by calling a function. But it is a tedious task to do everyday and sometimes I forgot doing it. I wonder if I can automate it ...
6
votes
1answer
1k views

Is it possible to execute a function or command at a specific time?

Is it possible to execute a function or command at a specific time? As an explicit example, is it possible to kill emacs at a specific time (time determined by the OS).