[Orgmode] Novice questions about using git for personal data files

2009-01-23 Thread Alan E. Davis
I followed the steps outlined in the worg tutorial about using git to keep
track of changes to one's own org data tree.

I still don't understand: how does one go about recovering an earlier
version of a file that has been corrupted?  Is there a good tutorial on this
aspect of using git?  I really like this idea, especially since I have
several times bodged an org-mode file by foolishly doing this:
   C-x C-T *

and making other importune mistakes.

Thank you,


-- 
Alan

It is undesirable to believe a proposition when
there is no ground whatsoever for supposing it is true.
 -- Bertrand Russell
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Novice here: agenda related questions

2009-01-23 Thread Saurabh Agrawal
Hi all,

First I would like to thank all those involved in this project for
producing such a deep and well thought of piece of software. And ya,
it is free.. :)

I am involved in several projects at a time and org-mode has provided
me a very functional means to keep track on them. I have gone through
the manual at random and read several tutorials which many users have
kindly contributed.

I have certain questions, the answers to which I couldn't find easily:

1. How to change colour of the TODO states? (the word TODO/DONE etc in
particular and that of whole line in the agenda view?)
2. Since I have a number of TODO action items in several projects, I
would like to display only top two of them for each project at a time
in an agenda. Is it somehow possible using some particular custom
agenda view?

Thanks a lot for reading.

I am big fan, already!

Regards,
Saurabh.


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Novice here: agenda related questions

2009-01-23 Thread Matthew Lundin

Saurabh Agrawal mailsaur...@gmail.com writes:

 1. How to change colour of the TODO states? (the word TODO/DONE etc in
 particular and that of whole line in the agenda view?)

To change the color of TODO states, you can use the variable
org-todo-keyword-faces. Here's an example from my own settings:

--8---cut here---start-8---
(setq org-todo-keyword-faces
  '(
 (TODO  . (:foreground firebrick2 :weight bold))
 (WAITING  . (:foreground olivedrab :weight bold))
 (BORROWED  . (:foreground olivedrab :weight bold))
 (ORDERED  . (:foreground olivedrab :weight bold))
 (LATER  . (:foreground sienna :weight bold))
 (PROJECT  . (:foreground steelblue :weight bold))
 (DONE  . (:foreground forestgreen :weight bold))
 (RETURNED  . (:foreground forestgreen :weight bold))
 (RECEIVED  . (:foreground forestgreen :weight bold))
 (RESOLVED  . (:foreground forestgreen :weight bold))
 (MAYBE  . (:foreground dimgrey :weight bold))
 (CANCELED  . (:foreground dimgrey :weight bold))
 ))
--8---cut here---end---8---

 2. Since I have a number of TODO action items in several projects, I
 would like to display only top two of them for each project at a time
 in an agenda. Is it somehow possible using some particular custom
 agenda view?


To customize a line in the agenda, simply type M-x customize-face on
that line and emacs should take you to the correct customization buffer.

Or you can add lines such as the following to your .emacs file:

--8---cut here---start-8---
(set-face-foreground 'org-warning firebrick2)
(set-face-foreground 'org-todo firebrick2)
(set-face-foreground 'org-done forestgreen)
(set-face-foreground 'org-scheduled-today limegreen)
--8---cut here---end---8---

Hope this helps,

Matt


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Novice questions about using git for personal data files

2009-01-23 Thread Manish
On Fri, Jan 23, 2009 at 5:25 PM, Alan E. Davis wrote:
 I followed the steps outlined in the worg tutorial about using git to keep
 track of changes to one's own org data tree.

 I still don't understand: how does one go about recovering an earlier
 version of a file that has been corrupted? Is there a good tutorial on this
 aspect of using git?

I am not aware of any tutorial on this but may following should help.

1. Do a git log in the repo to see what commits you have made
2. Decide from which commit you want to revive the file (most likely
   it would be the top most one.)
3. Note down the SHA1 for this commit (first eight or so characters
   should suffice.)
4. Following should get you the file:
   $ git checkout SHA1 file to checkout
5. You may need to add and commit the file back again to your git
   repo.

Frequent commits is a good idea but it's a burden so you might want to
create a small shell-script to commit periodically (hourly or so
maybe) for you.

Do let us know how it goes.

HTH
-- 
Manish


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Novice here: agenda related questions

2009-01-23 Thread Saurabh Agrawal
Hi Matt

1. Your first suggestion is spot on. Thanks.


 2. Since I have a number of TODO action items in several projects, I
 would like to display only top two of them for each project at a time
 in an agenda. Is it somehow possible using some particular custom
 agenda view?



In my second question, what I wanted to ask was is there some setting,
where I can set number of TODOs to display for a particular CATEGORY?
or something like that?





 To customize a line in the agenda, simply type M-x customize-face on
 that line and emacs should take you to the correct customization buffer.

 Or you can add lines such as the following to your .emacs file:

 --8---cut here---start-8---
 (set-face-foreground 'org-warning firebrick2)
 (set-face-foreground 'org-todo firebrick2)
 (set-face-foreground 'org-done forestgreen)
 (set-face-foreground 'org-scheduled-today limegreen)
 --8---cut here---end---8---



Changing face setting for say org-todo is working in the original org
file, but not in agenda and I wanted to change colours in the agenda
really, as that is what in front of me at all times and not the
original org file.

I couldn't find any face for org-agenda specifically.


Thanks again!

Saurabh.


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Novice here: agenda related questions

2009-01-23 Thread Matthew Lundin

Hi Saurabh,

Saurabh Agrawal mailsaur...@gmail.com writes:

 Hi Matt

 1. Your first suggestion is spot on. Thanks.

 2. Since I have a number of TODO action items in several projects, I
 would like to display only top two of them for each project at a
 time in an agenda. Is it somehow possible using some particular
 custom agenda view?


 In my second question, what I wanted to ask was is there some setting,
 where I can set number of TODOs to display for a particular CATEGORY?
 or something like that?

Sorry, I missed your second question when I replied to the email. I
handle this scenario by hand -- i.e., I only mark one or two next
actions as active TODOS per project and then switch the following
actions to TODO by hand once the first next actions are completed. (But
you could also mark the first one or two TODOs of a project with the tag
:NEXT: and then use a secondary query to limit your agenda only to items
tagged :NEXT:)

org-stuck-projects really helps here to determine which projects don't
have a next action.

If you want to automate cascading next actions, there is org-depend.el
in the contrib directory of the org distribution that can do what you're
looking for -- i.e., change the state of the next item in a subtree once
the previous item is marked done. Here's a quote from the file:

,
| ;;
| ;; Triggering
| ;; --
| ;;
| ;; 1) If an entry contains a TRIGGER property that contains the string
| ;;chain-siblings(KEYWORD), then switching that entry to DONE does
| ;;do the following:
| ;;- The sibling following this entry switched to todo-state KEYWORD.
| ;;- The sibling also gets a TRIGGER property chain-sibling(KEYWORD),
| ;;  property, to make sure that, when *it* is DONE, the chain will
| ;;  continue.
| ;;
| ;; 2) If the TRIGGER property contains any other words like
| ;;XYZ(KEYWORD), these are treated as entry id's with keywords.  That
| ;;means, Org-mode will search for an entry with the ID property XYZ
| ;;and switch that entry to KEYWORD as well.
`

There are also several discussions of org-depend on the mailing list.

Best,
Matt


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Novice here: agenda related questions

2009-01-23 Thread Saurabh Agrawal
Yup, I guess, what I want is org-depend.

But I will have to really spend some time to make that work since
I am quite new to org and emacs too.

Thanks for the insight.

And, is there any way to change colour of whole statements of
different TODO states in agenda mode?

Because setting face for org-todo does it in the org file, but not in agenda.

Thanks Matt!

Cheers,

Saurabh.


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] org-mode and check boxes

2009-01-23 Thread Umesh Nair
Hi,

I am new to org-mode ( I tried org-mode a year back for a few days, and now
again I am trying it.) but have been a power emacs user for more than 13
years.  Know enough emacs-lisp to do the normal things.

I installed org-mode 6.18c on top of 22.1.1.  I would like to get the
display look like the screenshot at the orgmode.org main page.  In
particular,


   1. The extra stars in the beginning should be avoided.
   2. I should be able to display and manipulate checkboxes.

Could someone tell me what variables I need to set for that?

I know that RTFM is a good answer.  I tried it, but didn't find the answer
easily :)

- Umesh
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] org-mode and check boxes

2009-01-23 Thread Manish
On Sat, Jan 24, 2009 at 5:46 AM, Umesh Nair wrote:
 Hi,

 I am new to org-mode

Welcome!

 ( I tried org-mode a year back for a few days, and now again I am
 trying it.)

Org changes pretty fast.  Fundamentally it's still as simple but so many
usability and convenience features have been added.  If you used Org
briefly earlier then perhaps you may want to check out what has been
added since at http://orgmode.org/Changes.html.

 but have been a power emacs user for more than 13 years. Know enough
 emacs-lisp to do the normal things.

 I installed org-mode 6.18c on top of 22.1.1. I would like to get the
 display look like the screenshot at the orgmode.org main page. In
 particular,

 The extra stars in the beginning should be avoided.

http://orgmode.org/manual/Clean-view.html#Clean-view


 I should be able to display and manipulate checkboxes.

http://orgmode.org/manual/Checkboxes.html#Checkboxes



 Could someone tell me what variables I need to set for that?

 I know that RTFM is a good answer. I tried it, but didn't find the answer
 easily :)

I would say you did not try hard enough. :) I went to
http://orgmode.org/manual/index.html and searched for stars to get the
answer to the first questions, and searched for checkboxes to get the
answer for the second.

Org manual is really really good; do try it.

Of course, you may also find the tutorials[1], FAQ[2] and Worg[3] also
useful.

1. http://orgmode.org/worg/org-tutorials/index.php
2. http://orgmode.org/worg/org-faq.php
3. http://orgmode.org/worg/

Welcome again.
-- 
Manish


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] org-mode and check boxes

2009-01-23 Thread Umesh Nair
Thanks Manish.   I did find the checkbox section, but it didn't work for
me.  I got it by a google search on emacs org-mode check boxes.  I put the
'[]' manually, and then tried C-c C-c to check it, but it didn't work.

Will try these and let you know tomorrow.

I had used planner before, and the org mode is much much better.

Thanks again.

- Umesh

On Fri, Jan 23, 2009 at 6:02 PM, Manish mailtomanish.sha...@gmail.comwrote:

 On Sat, Jan 24, 2009 at 5:46 AM, Umesh Nair wrote:
  Hi,
 
  I am new to org-mode

 Welcome!

  ( I tried org-mode a year back for a few days, and now again I am
  trying it.)

[... snip...]
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: org-mode and check boxes

2009-01-23 Thread Dan Griswold
Umesh Nair umesh.p.n...@gmail.com writes:

 I put the '[]' manually, and then tried C-c C-c to check it, but it
 didn't work.

A space is required between the brackets:

  [ ]

not

  []


Could that be the issue? (I made that very mistake when I was new to org-mode.)

Dan

-- 
--
Dan Griswold
Rochester, NY
--



___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: org-mode and check boxes

2009-01-23 Thread Umesh Nair
On Fri, Jan 23, 2009 at 6:32 PM, Dan Griswold dgris...@rochester.rr.comwrote:

 Umesh Nair umesh.p.n...@gmail.com writes:

  I put the '[]' manually, and then tried C-c C-c to check it, but it
  didn't work.

 A space is required between the brackets:

  [ ]

 not

  []


 Could that be the issue? (I made that very mistake when I was new to
 org-mode.)


That was it.  And I missed the '-' character for the list.

Thanks a lot.  Now everything is working.

- Umesh
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] footnote questions

2009-01-23 Thread Samuel Wales
Minor questions:

Is there a way to have footnotes that have more than one paragraph?
For me, they are not recognized as footnotes.

Also, is there a way to make footnote references work when they start
in column 0?  Reformatting a paragraph sometimes puts them there for
me.

Latest org release with (setf org-footnote-section nil).

Thanks.

-- 
For personal and corporate gain, myalgic encephalomyelitis denialists
are knowingly causing massive suffering and 25-years-early death by
grossly corrupting science.
http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode