From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xebar Saram Subject: Re: Capture template creates multiple property drawers, help needed Date: Sat, 1 Oct 2016 20:52:26 +0300 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11492d92ba8ee0053dd15f83 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49631) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqOSb-0007QE-VU for emacs-orgmode@gnu.org; Sat, 01 Oct 2016 13:52:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bqOSZ-0001qt-O6 for emacs-orgmode@gnu.org; Sat, 01 Oct 2016 13:52:28 -0400 Received: from mail-yw0-x230.google.com ([2607:f8b0:4002:c05::230]:36543) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqOSZ-0001qn-Hg for emacs-orgmode@gnu.org; Sat, 01 Oct 2016 13:52:27 -0400 Received: by mail-yw0-x230.google.com with SMTP id t67so86502942ywg.3 for ; Sat, 01 Oct 2016 10:52:27 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Philip Hudson Cc: emacs orgmode-mailinglist --001a11492d92ba8ee0053dd15f83 Content-Type: text/plain; charset=UTF-8 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 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 > --001a11492d92ba8ee0053dd15f83 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
i had an idea of using lisp to solve the header issue like= with=C2=A0%(org-insert-heading) , but that dosent seem do to anything. her= e is the code:

(add-to-list 'org-capture-templa= tes
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0'("uu" "resturant"
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0entry
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 (file+headline "/home/zeltak/org/files/agenda/travel.org" "Inbox")
=C2=A0 =C2=A0 &= quot;* %^{Description} =C2=A0=C2=A0
=C2=A0 :PROPERTIES:
=C2=A0 =C2=A0 =C2=A0 :ID: %(org-id-uuid)
=C2=A0 =C2=A0 =C2=A0 :R= ating: %^{rating?|-|1|2|3|4|5}
=C2=A0 =C2=A0 =C2=A0 :price: %^{pr= ice in local currancy?|-|0-10|10-20|20-30|30-50|50+}
=C2=A0 =C2= =A0 =C2=A0 :Source: %^{Source?}
=C2=A0 =C2=A0 =C2=A0 :Type: %^{Ty= pe?|meal|breakfeast|dessert|street}
=C2=A0 =C2=A0 =C2=A0 :Cuisine= : %^{Cuisine?|-|Indian|Thai|Vietnamese|Asian|Chinese|Israeli|Italian|Americ= an|EastEuro|Mexican|French|Persian|Austrian|Jewish|Japan}
=C2=A0 = =C2=A0 =C2=A0 :Fav: %^{Fav|yes|no}
=C2=A0 =C2=A0 =C2=A0 :END:
%(org-insert-heading) =C2=A0
%?
"
))


anyone?

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

i now re= member why i indented the =C2=A0sub 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 c= apture you kindly shared:

=C2=A0#+BEGIN_SRC emacs-lisp =C2=A0:results none
=

=C2=A0 ** = TODO Finalize %?%^{item}
=C2=A0 =C2=A0 =C2=A0SCHEDULED: <%(my-next-next-wor= king-day)>
=C2=A0 *** TODO Process %\1
<= span style=3D"font-size:12.8px">=C2=A0 =C2=A0 =C2=A0SCHEDULED: <%(my-nex= t-working-day)>

=C2=A0 **** TODO Prepare %\1
=C2=A0 =C2=A0 =C2=A0 =C2=A0SCHEDULED:= %t
#+END_SRC

will break the actual lisp code blocks.

Does an= yone know how to get around in org lisp code blocks in an org config?
=

best

Z

--001a11492d92ba8ee0053dd15f83--