From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: a quick way to switch orgmode notes between read-only/editing? Date: Thu, 17 Jul 2014 09:53:33 -0400 Message-ID: <87tx6gqeg2.fsf@gmail.com> References: <874mygxh5r.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37206) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7m8D-0000ap-NA for emacs-orgmode@gnu.org; Thu, 17 Jul 2014 09:54:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X7m84-00029w-ET for emacs-orgmode@gnu.org; Thu, 17 Jul 2014 09:53:57 -0400 Received: from plane.gmane.org ([80.91.229.3]:44064) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7m84-00029j-66 for emacs-orgmode@gnu.org; Thu, 17 Jul 2014 09:53:48 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1X7m82-0007Ny-J9 for emacs-orgmode@gnu.org; Thu, 17 Jul 2014 15:53:46 +0200 Received: from pool-98-110-160-12.bstnma.fios.verizon.net ([98.110.160.12]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 17 Jul 2014 15:53:46 +0200 Received: from ndokos by pool-98-110-160-12.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 17 Jul 2014 15:53:46 +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: > PS. Also can anyone think of a way to get a visual cue when the file > is in "view mode"? > > thx! > > Z > > On Thu, Jul 17, 2014 at 4:22 PM, Xebar Saram wrote: > > > can you recommend a way to open all orgmode notes in view mode by > default, i guess i would then bind a key to disable view mode to > start editing right? > Add a function that enables the minor mode to org-mode-hook (this is a completely general emacs mechanism and worth understanding thoroughly): (add-hook 'org-mode-hook (lambda () (view-mode 1))) As for visual cues, you get "View" added to the list of modes in the mode-line. Nick