all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Thien-Thi Nguyen <ttn@gnu.org>
Subject: Re: bash TMOUT for emacs
Date: Sun, 19 Dec 2004 01:49:24 +0100	[thread overview]
Message-ID: <7e1xdnf6y3.fsf@ada2.unipv.it> (raw)
In-Reply-To: mailman.7156.1103416780.27204.bug-gnu-emacs@gnu.org

jidanni@debian.linux.org.tw (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
        (run-with-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.

thi

       reply	other threads:[~2004-12-19  0:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.7156.1103416780.27204.bug-gnu-emacs@gnu.org>
2004-12-19  0:49 ` Thien-Thi Nguyen [this message]
2004-12-19  0:52   ` bash TMOUT for emacs Thien-Thi Nguyen
2004-12-20 16:43 ` Kevin Rodgers
2004-12-19  0:28 Dan Jacobson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7e1xdnf6y3.fsf@ada2.unipv.it \
    --to=ttn@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.