[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bash TMOUT for emacs

From: Thien-Thi Nguyen
Subject: Re: bash TMOUT for emacs
Date: Sun, 19 Dec 2004 01:49:24 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux)

address@hidden (Dan Jacobson) writes:

>        TMOUT  If  set  to a value greater than zero, the value is
>               interpreted as the number of seconds  to  wait  for
>               input  after issuing the primary prompt.

you can try:

(defun save-buffers-kill-emacs-when-idle (tmout)
  (interactive "nKill emacs when idle (seconds): ")
  (setq save-buffers-kill-emacs-when-idle-timer
          n tmout t
          (lambda ()
            (save-buffers-kill-emacs t))))

this sets the variable `save-buffers-kill-emacs-when-idle-timer'
which you can use to cancel the timer later, should you find your
computer again after galaing.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]