[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] a quick way to switch orgmode notes between read-only/editing?
From: |
Nick Dokos |
Subject: |
Re: [O] a quick way to switch orgmode notes between read-only/editing? |
Date: |
Thu, 17 Jul 2014 09:53:33 -0400 |
User-agent: |
Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.3.50 (gnu/linux) |
Xebar Saram <address@hidden> 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 <address@hidden> 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
- [O] a quick way to switch orgmode notes between read-only/editing?, Xebar Saram, 2014/07/17
- Re: [O] a quick way to switch orgmode notes between read-only/editing?, Jorge A. Alfaro-Murillo, 2014/07/17
- Re: [O] a quick way to switch orgmode notes between read-only/editing?, Xebar Saram, 2014/07/17
- Re: [O] a quick way to switch orgmode notes between read-only/editing?, Eric Abrahamsen, 2014/07/17
- Re: [O] a quick way to switch orgmode notes between read-only/editing?, Xebar Saram, 2014/07/18
- Re: [O] a quick way to switch orgmode notes between read-only/editing?, Thorsten Jolitz, 2014/07/18
- Re: [O] a quick way to switch orgmode notes between read-only/editing?, Xebar Saram, 2014/07/18
- Re: [O] a quick way to switch orgmode notes between read-only/editing?, Thorsten Jolitz, 2014/07/18
- Re: [O] a quick way to switch orgmode notes between read-only/editing?, Xebar Saram, 2014/07/18
- Re: [O] a quick way to switch orgmode notes between read-only/editing?, Thorsten Jolitz, 2014/07/18