all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* org-capture: Formatting of entries
@ 2010-06-29 23:38 Markus Heller
  2010-06-30  3:19 ` Puneeth
  0 siblings, 1 reply; 7+ messages in thread
From: Markus Heller @ 2010-06-29 23:38 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

I'm starting to sue (wow, bad typo, should read "use" of course) 
org-capture instead of org-remember, as probably a lot of other users do :)

Using an org-capture template [1], I end up with the following:

=============================================
* TODO Proper Formatting
   :CLOCK:
   CLOCK: [2010-06-29 Tue 16:33]
   :END:
:PROPERTIES:
:Created: [2010-06-29 Tue 16:33]
:END:
=============================================

What I would like to see is this:

=============================================
* TODO Proper Formatting
   :CLOCK:
   CLOCK: [2010-06-29 Tue 16:33]
   :END:
   :PROPERTIES:
   :Created: [2010-06-29 Tue 16:33]
   :END:
=============================================

that is, I'd love to see the :PROPERTIES: indented appropriately for the 
corresponding headline level.  Is this possible, and if so, how?

M-x org-version <Ret> yields:

Org-mode version 6.36trans (release_6.36.457.g025a9)

Thanks and Cheers
Markus

[1] My org-capture template:

(setq org-capture-templates
       '(("t" "Task" entry (file "h:/org/refile.org")
	 "* TODO %^{Todo} \n:PROPERTIES:\n:Created: %U\n:END:\n\n%?"
	 :clock-in :clock-resume)))

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: org-capture: Formatting of entries
  2010-06-29 23:38 org-capture: Formatting of entries Markus Heller
@ 2010-06-30  3:19 ` Puneeth
  2010-06-30  5:24   ` David Maus
  2010-06-30 17:53   ` Markus Heller
  0 siblings, 2 replies; 7+ messages in thread
From: Puneeth @ 2010-06-30  3:19 UTC (permalink / raw)
  To: Markus Heller; +Cc: emacs-orgmode

Hi

On Wed, Jun 30, 2010 at 5:08 AM, Markus Heller <hellerm2@gmail.com> wrote:
Just adding a space before the :PROPERTIES: drawer will work, right?
> (setq org-capture-templates
>      '(("t" "Task" entry (file "h:/org/refile.org")
>         "* TODO %^{Todo} \n:PROPERTIES:\n:Created: %U\n:END:\n\n%?"
>         :clock-in :clock-resume)))


(setq org-capture-templates
     '(("t" "Task" entry (file "h:/org/refile.org")
        "* TODO %^{Todo} \n :PROPERTIES:\n :Created: %U\n :END:\n\n%?"
        :clock-in :clock-resume)))

Thanks,
Puneeth

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: org-capture: Formatting of entries
  2010-06-30  3:19 ` Puneeth
@ 2010-06-30  5:24   ` David Maus
  2010-06-30 17:50     ` Markus Heller
  2010-06-30 17:53   ` Markus Heller
  1 sibling, 1 reply; 7+ messages in thread
From: David Maus @ 2010-06-30  5:24 UTC (permalink / raw)
  To: Puneeth; +Cc: Markus Heller, emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 813 bytes --]

Puneeth wrote:
>Hi

>On Wed, Jun 30, 2010 at 5:08 AM, Markus Heller <hellerm2@gmail.com> wrote:
>Just adding a space before the :PROPERTIES: drawer will work, right?
>> (setq org-capture-templates
>>      '(("t" "Task" entry (file "h:/org/refile.org")
>>         "* TODO %^{Todo} \n:PROPERTIES:\n:Created: %U\n:END:\n\n%?"
>>         :clock-in :clock-resume)))


>(setq org-capture-templates
>     '(("t" "Task" entry (file "h:/org/refile.org")
>        "* TODO %^{Todo} \n :PROPERTIES:\n :Created: %U\n :END:\n\n%?"
>        :clock-in :clock-resume)))
         ^^^^^^^^^^^^^^^^^^^^^^^

An there's an error in the template.  It should read

 :clock-in t :clock-resume t

HTH
 -- David
-- 
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... dmjena@jabber.org
Email..... dmaus@ictsoc.de

[-- Attachment #1.2: Type: application/pgp-signature, Size: 230 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: org-capture: Formatting of entries
  2010-06-30  5:24   ` David Maus
@ 2010-06-30 17:50     ` Markus Heller
  0 siblings, 0 replies; 7+ messages in thread
From: Markus Heller @ 2010-06-30 17:50 UTC (permalink / raw)
  To: emacs-orgmode

On 6/29/2010 10:24 PM, David Maus wrote:
> Puneeth wrote:
>> Hi
>
>> On Wed, Jun 30, 2010 at 5:08 AM, Markus Heller<hellerm2@gmail.com>  wrote:
>> Just adding a space before the :PROPERTIES: drawer will work, right?
>>> (setq org-capture-templates
>>>       '(("t" "Task" entry (file "h:/org/refile.org")
>>>          "* TODO %^{Todo} \n:PROPERTIES:\n:Created: %U\n:END:\n\n%?"
>>>          :clock-in :clock-resume)))
>
>
>> (setq org-capture-templates
>>      '(("t" "Task" entry (file "h:/org/refile.org")
>>         "* TODO %^{Todo} \n :PROPERTIES:\n :Created: %U\n :END:\n\n%?"
>>         :clock-in :clock-resume)))
>           ^^^^^^^^^^^^^^^^^^^^^^^
>
> An there's an error in the template.  It should read
>
>   :clock-in t :clock-resume t

D'uh ...  Of course.  Thanks for pointing this out, David!

Markus

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: org-capture: Formatting of entries
  2010-06-30  3:19 ` Puneeth
  2010-06-30  5:24   ` David Maus
@ 2010-06-30 17:53   ` Markus Heller
  2010-06-30 19:05     ` Tassilo Horn
  1 sibling, 1 reply; 7+ messages in thread
From: Markus Heller @ 2010-06-30 17:53 UTC (permalink / raw)
  To: emacs-orgmode

On 6/29/2010 8:19 PM, Puneeth wrote:
> Hi
>
> On Wed, Jun 30, 2010 at 5:08 AM, Markus Heller<hellerm2@gmail.com>  wrote:
> Just adding a space before the :PROPERTIES: drawer will work, right?
>> (setq org-capture-templates
>>       '(("t" "Task" entry (file "h:/org/refile.org")
>>          "* TODO %^{Todo} \n:PROPERTIES:\n:Created: %U\n:END:\n\n%?"
>>          :clock-in :clock-resume)))
>
>
> (setq org-capture-templates
>       '(("t" "Task" entry (file "h:/org/refile.org")
>          "* TODO %^{Todo} \n :PROPERTIES:\n :Created: %U\n :END:\n\n%?"
>          :clock-in :clock-resume)))
>

No, adding a space between "\n" and ":PROPERTIES:", ":Created", and 
":END:" does just that, it adds a space, but does NOT yield the proper 
indent.  This becomes more obvious when you refile a capture note to a 
second-level headline.

Any other ideas/suggestions?

Thanks
Markus

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: org-capture: Formatting of entries
  2010-06-30 17:53   ` Markus Heller
@ 2010-06-30 19:05     ` Tassilo Horn
  2010-06-30 19:30       ` Markus Heller
  0 siblings, 1 reply; 7+ messages in thread
From: Tassilo Horn @ 2010-06-30 19:05 UTC (permalink / raw)
  To: emacs-orgmode

Markus Heller <hellerm2@gmail.com> writes:

Hi Markus,

> No, adding a space between "\n" and ":PROPERTIES:", ":Created", and
> ":END:" does just that, it adds a space, but does NOT yield the proper
> indent.  This becomes more obvious when you refile a capture note to a
> second-level headline.
>
> Any other ideas/suggestions?

I've suggested a more generic approach to specify properties in capture
templates.  Have a look at the thread starting with the message
<877hlqetr8.fsf@thinkpad.tsdh.de>.

Of course, that's only a suggestion and nothing of that is
implemented... ;-)

Bye,
Tassilo

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: org-capture: Formatting of entries
  2010-06-30 19:05     ` Tassilo Horn
@ 2010-06-30 19:30       ` Markus Heller
  0 siblings, 0 replies; 7+ messages in thread
From: Markus Heller @ 2010-06-30 19:30 UTC (permalink / raw)
  To: emacs-orgmode

On 6/30/2010 12:05 PM, Tassilo Horn wrote:
> Markus Heller<hellerm2@gmail.com>  writes:
>
> Hi Markus,
>
>> No, adding a space between "\n" and ":PROPERTIES:", ":Created", and
>> ":END:" does just that, it adds a space, but does NOT yield the proper
>> indent.  This becomes more obvious when you refile a capture note to a
>> second-level headline.
>>
>> Any other ideas/suggestions?
>
> I've suggested a more generic approach to specify properties in capture
> templates.  Have a look at the thread starting with the message
> <877hlqetr8.fsf@thinkpad.tsdh.de>.
>
> Of course, that's only a suggestion and nothing of that is
> implemented... ;-)

Ah, thank you.  I skimmed the thread earlier but didn't catch 
everything.  Let's keep our fingers crossed that your suggestions (or a 
variation thereof) will be implemented; IIRC, Carsten mentioned 
something along these lines.

Thanks
Markus

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-06-30 19:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-29 23:38 org-capture: Formatting of entries Markus Heller
2010-06-30  3:19 ` Puneeth
2010-06-30  5:24   ` David Maus
2010-06-30 17:50     ` Markus Heller
2010-06-30 17:53   ` Markus Heller
2010-06-30 19:05     ` Tassilo Horn
2010-06-30 19:30       ` Markus Heller

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.