From: Xebar Saram <zeltakc@gmail.com>
To: org mode <emacs-orgmode@gnu.org>
Subject: Re: expand yasnippet or abbriv text inside a capture
Date: Sat, 6 Jun 2015 09:54:51 +0300 [thread overview]
Message-ID: <CAOQHXPpUQFB2Pwf4rg_cgVmk-Ww0Fa-oK+3uBL_r3gOcAV3beQ@mail.gmail.com> (raw)
In-Reply-To: <CAOQHXPpfu86yEDMpCvezCNcpL61p3vurrY1GFYA2HQUsQFvgkg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1349 bytes --]
Ok so i made some progress here. i think i can just use the org capture
itself to suit my needs. but as i dont know elisp i got stuck with this:
(setq org-capture-templates
(quote (
("f" "food" entry (file+headline "/home/zeltak/org/files/agenda/food.org"
"Inbox")
"* Cook %? %^g
:PROPERTIES:
:Time:
:Rating:
:Source:
:Ammount:
:Fav:
:Type:
:ID:
:END:
** HEADER 2
** HEADER 3 " )
when i add the subheaders ** HEADER 2 and ** HEADER 3 i can eval the
section anymore.
Do i need to escape the * somehow? i just want 2 same level subheadrs below
the main capture header/
whats the best way to do this?
best
Z
On Fri, Jun 5, 2015 at 9:57 PM, Xebar Saram <zeltakc@gmail.com> wrote:
> Hi all
>
> I was wondering since i have zero lisp (or coding at all) skills if anyone
> could show me an example on how to expand yasnippet or text as part of a
> org capture
>
> i think that using %(sexp) would work (im guessing here :))
>
> i have this capture
>
> ("f" "food" entry (file+headline "/home/zeltak/org/files/agenda/food.org"
> "Inbox")
> "* COOK %? %^g " :kill-buffer )
>
> i want that after the COOK headline it will expand a snippet or if not
> possible add a property drawer.
>
> also related can org ask me to fill in specific properties in a property
> drawer as part of the capture?
>
> thx!
>
> Z
>
[-- Attachment #2: Type: text/html, Size: 2414 bytes --]
next prev parent reply other threads:[~2015-06-06 6:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-05 18:57 expand yasnippet or abbriv text inside a capture Xebar Saram
2015-06-06 6:54 ` Xebar Saram [this message]
2015-06-08 16:22 ` Nick Dokos
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=CAOQHXPpUQFB2Pwf4rg_cgVmk-Ww0Fa-oK+3uBL_r3gOcAV3beQ@mail.gmail.com \
--to=zeltakc@gmail.com \
--cc=emacs-orgmode@gnu.org \
/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).