Re: [O] a quick way to switch orgmode notes between read-only/editing?

2014-07-18 Thread Thorsten Jolitz
Xebar Saram writes: > Thx again Thorsten > > for some reason it wont work here. i evaluated it and have in in my > config. i open notes in view mode (the other hook i used) and then > edit them. i leave the pc for 5-10 minutes but it dosent revert to > view mode for some reason. am i missing some

Re: [O] a quick way to switch orgmode notes between read-only/editing?

2014-07-18 Thread Xebar Saram
Thx again Thorsten for some reason it wont work here. i evaluated it and have in in my config. i open notes in view mode (the other hook i used) and then edit them. i leave the pc for 5-10 minutes but it dosent revert to view mode for some reason. am i missing something? thx! Z On Fri, Jul 18,

Re: [O] a quick way to switch orgmode notes between read-only/editing?

2014-07-18 Thread Thorsten Jolitz
Xebar Saram writes: > Thx Thorsten > > i tried that but that dosent seem to work :) any way i can try to > debug this (i apologize in advance for my zero lisp knowledge :) it actually worked, but only with calling the reset function manually once. try this: #+begin_src emacs-lisp (defvar tj/l

Re: [O] a quick way to switch orgmode notes between read-only/editing?

2014-07-18 Thread Xebar Saram
Thx Thorsten i tried that but that dosent seem to work :) any way i can try to debug this (i apologize in advance for my zero lisp knowledge :) best Z On Fri, Jul 18, 2014 at 11:54 AM, Thorsten Jolitz wrote: > Xebar Saram writes: > > > Thx again all, really cool. > > > > one last question.

Re: [O] a quick way to switch orgmode notes between read-only/editing?

2014-07-18 Thread Thorsten Jolitz
Xebar Saram writes: > Thx again all, really cool. > > one last question. anyone mind pasting code to revert an open buffer > to read only when idle for lets say 5 minutes? you could try this (untested!): #+begin_src emacs-lisp (defvar tj/last-buffer-tick nil) (make-variable-buffer-local 'tj/las

Re: [O] a quick way to switch orgmode notes between read-only/editing?

2014-07-18 Thread Xebar Saram
Thx again all, really cool. one last question. anyone mind pasting code to revert an open buffer to read only when idle for lets say 5 minutes? thx alot! Z On Fri, Jul 18, 2014 at 2:42 AM, Eric Abrahamsen wrote: > Xebar Saram writes: > > > Thanks guys. really appreciate all your help > > >

Re: [O] a quick way to switch orgmode notes between read-only/editing?

2014-07-17 Thread Eric Abrahamsen
Xebar Saram writes: > Thanks guys. really appreciate all your helpĀ  > > im now using view-mode with hooks as suggested. btw whats the > advantages of viewer-mode over read-only-mode Mostly that you get more convenient navigation commands. Scrolling and searching etc don't require control modifie

Re: [O] a quick way to switch orgmode notes between read-only/editing?

2014-07-17 Thread Xebar Saram
Thanks guys. really appreciate all your help im now using view-mode with hooks as suggested. btw whats the advantages of viewer-mode over read-only-mode best Z On Thu, Jul 17, 2014 at 5:46 PM, Jorge A. Alfaro-Murillo < jorge.a.alf...@gmail.com> wrote: > Xebar Saram writes: > > > i keep once

Re: [O] a quick way to switch orgmode notes between read-only/editing?

2014-07-17 Thread Jorge A. Alfaro-Murillo
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

Re: [O] a quick way to switch orgmode notes between read-only/editing?

2014-07-17 Thread Nick Dokos
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 th

Re: [O] a quick way to switch orgmode notes between read-only/editing?

2014-07-17 Thread Thorsten Jolitz
Xebar Saram writes: > PS. Also can anyone think of a way to get a visual cue when the file > is in "view mode"? There is a visual cue in the mode-line: , | 1-UUU:**-- ` changes to , | 1-UUU:%%-- ` when view-mode is active > On Thu, Jul 17, 2014 at 4:22 PM, Xebar Saram > wr

Re: [O] a quick way to switch orgmode notes between read-only/editing?

2014-07-17 Thread Thorsten Jolitz
Xebar Saram writes: > Thx Thorston this looks great > > can you recommend a way to open all orgmode notes in view mode by > default you could try (untested!!) , | (add-hook 'org-mode-hook 'view-mode) ` > i guess i would then bind a key to disable view mode to start > editing right? Th

Re: [O] a quick way to switch orgmode notes between read-only/editing?

2014-07-17 Thread Xebar Saram
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: > Thx Thorston this looks great > > can you recommend a way to open all orgmode notes in view mode by default, > i guess i would then bind a key t

Re: [O] a quick way to switch orgmode notes between read-only/editing?

2014-07-17 Thread Xebar Saram
Thx Thorston this looks great 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? thanks alot again Z On Thu, Jul 17, 2014 at 4:13 PM, Thorsten Jolitz wrote: > Xebar Saram writes: > > > hi al

Re: [O] a quick way to switch orgmode notes between read-only/editing?

2014-07-17 Thread Thorsten Jolitz
Xebar Saram writes: > hi all > > 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? i have used such > options in previous note taking apps that had t

[O] a quick way to switch orgmode notes between read-only/editing?

2014-07-17 Thread Xebar Saram
hi all 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? i have used such options in previous note taking apps that had that option build in but i underst