emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: expand yasnippet or abbriv text inside a capture
Date: Mon, 08 Jun 2015 12:22:27 -0400	[thread overview]
Message-ID: <87lhfuf9vg.fsf@alphaville.usersys.redhat.com> (raw)
In-Reply-To: CAOQHXPpUQFB2Pwf4rg_cgVmk-Ww0Fa-oK+3uBL_r3gOcAV3beQ@mail.gmail.com

Xebar Saram <zeltakc@gmail.com> writes:

> 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.
>

If this is your complete setting for org-capture-templates, you are
missing closing parens (three of them if I'm counting correctly). If you
have additional entries, just post the whole (setq org-capture-templates ... )
form: somebody will be able to correct it for you.

> 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?
>

The above worked for me, so I assume it is just a paren syntax error.

Nick

      reply	other threads:[~2015-06-08 16:22 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
2015-06-08 16:22   ` Nick Dokos [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=87lhfuf9vg.fsf@alphaville.usersys.redhat.com \
    --to=ndokos@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).