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 e...@ericabrahamsen.net wrote: Xebar Saram zelt...@gmail.com writes: Thanks guys.

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

2014-07-18 Thread Thorsten Jolitz
Xebar Saram zelt...@gmail.com 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)

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 tjol...@gmail.com wrote: Xebar Saram zelt...@gmail.com writes: Thx again all, really

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

2014-07-18 Thread Thorsten Jolitz
Xebar Saram zelt...@gmail.com 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

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

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

2014-07-18 Thread Thorsten Jolitz
Xebar Saram zelt...@gmail.com 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

[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

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

2014-07-17 Thread Thorsten Jolitz
Xebar Saram zelt...@gmail.com 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

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 tjol...@gmail.com wrote: Xebar Saram

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 zelt...@gmail.com 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

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

2014-07-17 Thread Thorsten Jolitz
Xebar Saram zelt...@gmail.com 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

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

2014-07-17 Thread Thorsten Jolitz
Xebar Saram zelt...@gmail.com 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,

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

2014-07-17 Thread Nick Dokos
Xebar Saram zelt...@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 zelt...@gmail.com wrote: can you recommend a way to open all orgmode notes in view mode by

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

2014-07-17 Thread Jorge A. Alfaro-Murillo
Xebar Saram zelt...@gmail.com 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

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 zelt...@gmail.com writes:

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

2014-07-17 Thread Eric Abrahamsen
Xebar Saram zelt...@gmail.com 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