all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* automatically read-only status
@ 2011-02-28 21:47 Kejia柯嘉
  2011-03-01 13:49 ` Stephen Berman
       [not found] ` <mailman.0.1298987405.12792.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 3+ messages in thread
From: Kejia柯嘉 @ 2011-02-28 21:47 UTC (permalink / raw)
  To: help-gnu-emacs

Hi people,

I know C-x C-q makes into read-only mode. My question is how to
activate the read-only mode after n minutes idle.

Thanks.

--------------------
Kejia


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: automatically read-only status
  2011-02-28 21:47 automatically read-only status Kejia柯嘉
@ 2011-03-01 13:49 ` Stephen Berman
       [not found] ` <mailman.0.1298987405.12792.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 3+ messages in thread
From: Stephen Berman @ 2011-03-01 13:49 UTC (permalink / raw)
  To: help-gnu-emacs

On Mon, 28 Feb 2011 13:47:45 -0800 (PST) Kejia柯嘉 <w.kejia@gmail.com> wrote:

> Hi people,
>
> I know C-x C-q makes into read-only mode. My question is how to
> activate the read-only mode after n minutes idle.

You could evaluate this:

(setq my-ro-timer (run-with-idle-timer 180 t 'toggle-read-only 1))

This will make the current buffer read-only every time Emacs is idle for
three minutes.  To stop this, evaluate (cancel-timer my-ro-timer).  Type
`C-h f run-with-idle-timer' for more information.

Steve Berman




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: automatically read-only status
       [not found] ` <mailman.0.1298987405.12792.help-gnu-emacs@gnu.org>
@ 2011-03-02 15:14   ` Kejia柯嘉
  0 siblings, 0 replies; 3+ messages in thread
From: Kejia柯嘉 @ 2011-03-02 15:14 UTC (permalink / raw)
  To: help-gnu-emacs

Thanks a lot, Steve!

On 3月1日, 上午8时49分, Stephen Berman <stephen.ber...@gmx.net> wrote:
> On Mon, 28 Feb 2011 13:47:45 -0800 (PST) Kejia柯嘉 <w.ke...@gmail.com> wrote:
>
> > Hi people,
>
> > I know C-x C-q makes into read-only mode. My question is how to
> > activate the read-only mode after n minutes idle.
>
> You could evaluate this:
>
> (setq my-ro-timer (run-with-idle-timer 180 t 'toggle-read-only 1))
>
> This will make the current buffer read-only every time Emacs is idle for
> three minutes.  To stop this, evaluate (cancel-timer my-ro-timer).  Type
> `C-h f run-with-idle-timer' for more information.
>
> Steve Berman



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-03-02 15:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-28 21:47 automatically read-only status Kejia柯嘉
2011-03-01 13:49 ` Stephen Berman
     [not found] ` <mailman.0.1298987405.12792.help-gnu-emacs@gnu.org>
2011-03-02 15:14   ` Kejia柯嘉

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.