[Top][All Lists]

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

Re: automatically read-only status

From: Kejia柯嘉
Subject: Re: automatically read-only status
Date: Wed, 2 Mar 2011 07:14:23 -0800 (PST)
User-agent: G2/1.0

Thanks a lot, Steve!

On 3月1日, 上午8时49分, Stephen Berman <address@hidden> wrote:
> On Mon, 28 Feb 2011 13:47:45 -0800 (PST) Kejia柯嘉 <address@hidden> 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

reply via email to

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