emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: a quick way to switch orgmode notes between read-only/editing?
Date: Thu, 17 Jul 2014 09:53:33 -0400	[thread overview]
Message-ID: <87tx6gqeg2.fsf@gmail.com> (raw)
In-Reply-To: CAOQHXPrrsLOQ3zUzMcQ8cCTwg+4ZivreCvO5P8V1CdosrQ1nqQ@mail.gmail.com

Xebar Saram <zeltakc@gmail.com> 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 <zeltakc@gmail.com> 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

     

  parent reply	other threads:[~2014-07-17 13:54 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-17 12:40 a quick way to switch orgmode notes between read-only/editing? Xebar Saram
2014-07-17 13:13 ` Thorsten Jolitz
2014-07-17 13:22   ` Xebar Saram
2014-07-17 13:23     ` Xebar Saram
2014-07-17 13:50       ` Thorsten Jolitz
2014-07-17 13:53       ` Nick Dokos [this message]
2014-07-17 13:57     ` Thorsten Jolitz
2014-07-17 14:46 ` Jorge A. Alfaro-Murillo
2014-07-17 15:15   ` Xebar Saram
2014-07-17 23:42     ` Eric Abrahamsen
2014-07-18  7:50       ` Xebar Saram
2014-07-18  8:54         ` Thorsten Jolitz
2014-07-18 12:14           ` Xebar Saram
2014-07-18 12:35             ` Thorsten Jolitz
2014-07-18 15:31               ` Xebar Saram
2014-07-18 20:37                 ` Thorsten Jolitz

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=87tx6gqeg2.fsf@gmail.com \
    --to=ndokos@gmail.com \
    --cc=emacs-orgmode@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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).