emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Xebar Saram <zeltakc@gmail.com>
To: Philip Hudson <phil.hudson@iname.com>
Cc: emacs orgmode-mailinglist <emacs-orgmode@gnu.org>
Subject: Re: Capture template creates multiple property drawers, help needed
Date: Sat, 1 Oct 2016 20:52:26 +0300	[thread overview]
Message-ID: <CAOQHXPqugzXtV_f5heLHqXTYxdHg+YZbT4=WpbAqaK7htXykWg@mail.gmail.com> (raw)
In-Reply-To: <CAOQHXPpj0tv_bsZH6RNdq5bZJbxsfWO53MHhbzc1kikEZ3KJBg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1495 bytes --]

i had an idea of using lisp to solve the header issue like
with %(org-insert-heading) , but that dosent seem do to anything. here is
the code:

(add-to-list 'org-capture-templates
                   '("uu" "resturant"
                     entry
                    (file+headline "/home/zeltak/org/files/agenda/travel.org"
"Inbox")
    "* %^{Description}
  :PROPERTIES:
      :ID: %(org-id-uuid)
      :Rating: %^{rating?|-|1|2|3|4|5}
      :price: %^{price in local currancy?|-|0-10|10-20|20-30|30-50|50+}
      :Source: %^{Source?}
      :Type: %^{Type?|meal|breakfeast|dessert|street}
      :Cuisine:
%^{Cuisine?|-|Indian|Thai|Vietnamese|Asian|Chinese|Israeli|Italian|American|EastEuro|Mexican|French|Persian|Austrian|Jewish|Japan}
      :Fav: %^{Fav|yes|no}
      :END:
%(org-insert-heading)
%?
"
))


anyone?

On Sat, Oct 1, 2016 at 6:55 PM, Xebar Saram <zeltakc@gmail.com> wrote:

> thx phil
>
> i now remember why i indented the  sub headers. i use a init.el file thats
> an org file (that is i tangle my setting.org) into settings.el at startup
> thus the above capture you kindly shared:
>
>  #+BEGIN_SRC emacs-lisp  :results none
>
>   ** TODO Finalize %?%^{item}
>      SCHEDULED: <%(my-next-next-working-day)>
>   *** TODO Process %\1
>      SCHEDULED: <%(my-next-working-day)>
>   **** TODO Prepare %\1
>        SCHEDULED: %t
> #+END_SRC
>
> will break the actual lisp code blocks.
>
> Does anyone know how to get around in org lisp code blocks in an org
> config?
>
> best
>
> Z
>

[-- Attachment #2: Type: text/html, Size: 2874 bytes --]

      reply	other threads:[~2016-10-01 17:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-01  8:51 Capture template creates multiple property drawers, help needed Xebar Saram
2016-10-01 10:26 ` Philip Hudson
2016-10-01 11:05   ` Xebar Saram
2016-10-01 13:25     ` Philip Hudson
2016-10-01 15:55       ` Xebar Saram
2016-10-01 17:52         ` Xebar Saram [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAOQHXPqugzXtV_f5heLHqXTYxdHg+YZbT4=WpbAqaK7htXykWg@mail.gmail.com' \
    --to=zeltakc@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=phil.hudson@iname.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).