Re: [O] Problems with org-capture

2014-05-23 Thread Bastien
Hi Josef,

Josef Wolf j...@raven.inka.de writes:

  (setq org-capture-templates
   '((t Todo entry (file+headline /m/s/rep/git/todo/newgtd.org Tasks)
  * TODO %^{Brief Description} %^g%?\n   Created: %U\n   %i\n   %A\n\n
  :kill-buffer :empty-lines 3)))

You forgot to specify a value for the :kill-buffer parameter:

  :kill-buffer t :empty-lines 3

will work and add the empty lines.

You may also use :empty-lines-after 3 which should fit your need.

 - The second problem is that when invoked with content fron an active region
   (the %i flag), then the %A flag won't ask me for a link description and the
   %i contents are used as description.

I don't see this bug.  Can you test again (maybe with an updated
version of Org -- don't forget to mention the Org version by eval'ing
M-x org-version RET)?

Thanks,

-- 
 Bastien



Re: [O] Problems with org-capture

2014-05-20 Thread Bastien
Hi Josef,

Josef Wolf j...@raven.inka.de writes:

 Any ideas on that problem?

I'll take a look later on -- in the meantime, can you tell what
version of Emacs and Org you are using?

M-x emacs-version RET
M-x org-version RET

Thanks,

-- 
 Bastien



Re: [O] Problems with org-capture

2014-05-09 Thread Josef Wolf
On Di, Mai 06, 2014 at 11:57:34 +0200, Josef Wolf wrote:
 I am new to org-mode, and am currently working through
 http://members.optusnet.com.au/~charles57/GTD/gtd_workflow.html and am stuck
 a little bit the the caprure mode.
 
 My first question is: org-capture seems to come with a pre-confuigured
 template for a Todo stanza. I thought, I'd take a closer look at this
 example to learn from it and as a starting point for my own
 customizations. But DESCRIBE-VARIABLE shows that ORG-CAPTURE-TEMPLATES is set
 to NIL. So, where does this pre-configured Todo entry come from?
 
 The I created my own template like this:
 
  (setq org-capture-templates
   '((t Todo entry (file+headline /m/s/rep/git/todo/newgtd.org Tasks)
  * TODO %^{Brief Description} %^g%?\n   Created: %U\n   %i\n   %A\n\n
  :kill-buffer :empty-lines 3)))
 
 With this template, I have two problems:
 
 - The most annoying problem is that it eats up the newlines behind the newly
   created entry. I always keep multiple empty lines between top-level
   headings. But even then, a newly created entry eats up all the newlines and
   even melts the succeeding heading onto the end of the newly created entry.
   I guess, this is not how it is meant to work. How would I define 
 
 - The second problem is that when invoked with content fron an active region
   (the %i flag), then the %A flag won't ask me for a link description and the
   %i contents are used as description.

Any ideas on that problem?

-- 
Josef Wolf
j...@raven.inka.de



[O] Problems with org-capture

2014-05-06 Thread Josef Wolf
Hello everybody,

I am new to org-mode, and am currently working through
http://members.optusnet.com.au/~charles57/GTD/gtd_workflow.html and am stuck
a little bit the the caprure mode.

My first question is: org-capture seems to come with a pre-confuigured
template for a Todo stanza. I thought, I'd take a closer look at this
example to learn from it and as a starting point for my own
customizations. But DESCRIBE-VARIABLE shows that ORG-CAPTURE-TEMPLATES is set
to NIL. So, where does this pre-configured Todo entry come from?

The I created my own template like this:

 (setq org-capture-templates
  '((t Todo entry (file+headline /m/s/rep/git/todo/newgtd.org Tasks)
 * TODO %^{Brief Description} %^g%?\n   Created: %U\n   %i\n   %A\n\n
 :kill-buffer :empty-lines 3)))

With this template, I have two problems:

- The most annoying problem is that it eats up the newlines behind the newly
  created entry. I always keep multiple empty lines between top-level
  headings. But even then, a newly created entry eats up all the newlines and
  even melts the succeeding heading onto the end of the newly created entry.
  I guess, this is not how it is meant to work. How would I define 

- The second problem is that when invoked with content fron an active region
  (the %i flag), then the %A flag won't ask me for a link description and the
  %i contents are used as description.

Any ideas what might be wrong here?

-- 
Josef Wolf
j...@raven.inka.de