From mboxrd@z Thu Jan 1 00:00:00 1970 From: jorge.a.alfaro@gmail.com (Jorge A. Alfaro-Murillo) Subject: Re: a quick way to switch orgmode notes between read-only/editing? Date: Thu, 17 Jul 2014 10:46:44 -0400 Message-ID: <87d2d49h63.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52030) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7mxW-000429-4Y for emacs-orgmode@gnu.org; Thu, 17 Jul 2014 10:47:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X7mxN-0005qc-OP for emacs-orgmode@gnu.org; Thu, 17 Jul 2014 10:46:58 -0400 Received: from plane.gmane.org ([80.91.229.3]:45298) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7mxN-0005qT-HT for emacs-orgmode@gnu.org; Thu, 17 Jul 2014 10:46:49 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1X7mxL-000366-Q6 for emacs-orgmode@gnu.org; Thu, 17 Jul 2014 16:46:47 +0200 Received: from nat-130-132-173-153.central.yale.edu ([130.132.173.153]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 17 Jul 2014 16:46:47 +0200 Received: from jorge.a.alfaro by nat-130-132-173-153.central.yale.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 17 Jul 2014 16:46:47 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Xebar Saram writes: > i keep once and a while screwing up my notes with unintended editing > (erroneous key presses etc) and was wondering if any one knew of a way > to to switch orgmode notes between read-only/editing? Hi Xebar. Use C-x C-q. This works for every file, I use it in particular for notes that I do not want to edit. It runs the command read-only-mode which changes whether the current buffer is read-only. Actually the command switches the local variable buffer-read-only, so you can use that variable as local for every file that you do not want to edit by default. At the end of those files add: #+BEGIN_EXAMPLE %%% Local Variables: %%% buffer-read-only: t %%% End: #+END_EXAMPLE And every time that you want to edit them just do C-x C-q Best, Jorge.