emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: emacs-orgmode@gnu.org
Subject: Re: Capturing to current file
Date: Sat, 14 Apr 2012 18:45:00 -0400	[thread overview]
Message-ID: <8582.1334443500@alphaville> (raw)
In-Reply-To: Message from Richard Riley <rileyrg@gmail.com> of "Sat, 14 Apr 2012 23:44:32 +0200." <0l3986kmyn.fsf@news.eternal-september.org>

Richard Riley <rileyrg@gmail.com> wrote:

> Karl Voit <devnull@Karl-Voit.at> writes:
> 
> > * Marvin Doyley <marvinpas@gmail.com> wrote:
> >> Hi there,
> >
> > Hi!
> >
> >> I am trying to create a thought bin related to a specific project
> >> (org-file, where I perform all my writing task).
> >> My idea is very simple,  if an idea, todo item related to the project
> >> i am working on,  which is usually the case, I would like to  file it
> >> under a specific heading within the same file rather than a master
> >> file.
> >>
> >> Any thoughts on how to do this ?
> >
> > Oh yes, take a look on http://orgmode.org/org.html#Capture-templates
> > where you can define target files for your item.
> 
> Is it documented on how to achieve what the op requested? Namely to
> store the notes in the current file? Would that be a use for the
> function-finding-location?
> 

I couldn't really tell what the OP requested, but if it is indeed
storing the capture in the current file, the answer is "that can be
done".  AFAIK, it's not documented anywhere except on the mailing list
though - see

   http://thread.gmane.org/gmane.emacs.orgmode/35759/focus=35781

Something like this (untested):

(setq org-capture-templates
'(                   
  ("X" "test" entry (file+headline (buffer-file-name (org-capture-get :original-buffer)) "Tasks") "* TODO %?
  %U %a %n" :prepend t)))

Nick

  parent reply	other threads:[~2012-04-14 22:45 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-01  2:22 calendar problem with schedule Richard Riley
     [not found] ` <rileyrg@gmail.com>
2012-01-01  4:51   ` Nick Dokos
2012-01-03 20:34     ` Richard Riley
2012-01-03 20:48       ` Nick Dokos
2012-01-03 22:20         ` Richard Riley
2012-02-17 21:14   ` Limit todo window Nick Dokos
2012-02-18 10:12     ` Richard Riley
2012-04-14 22:45   ` Nick Dokos [this message]
2012-04-14 23:02     ` Capturing to current file Samuel Wales
2012-04-14 23:05       ` Nick Dokos
2012-04-14 23:04     ` Nick Dokos
2012-04-14 23:21       ` Richard Riley
2012-04-15  1:18       ` Charles
2012-04-15  2:33         ` Nick Dokos
2012-04-15  2:49           ` Samuel Wales
2012-04-15 13:52             ` Nick Dokos
2012-04-20 12:58           ` Bastien
2012-04-20 19:44             ` Charles
2012-04-29  8:59               ` Bastien
2012-05-01  2:54                 ` Mike McLean
2012-04-22 13:14             ` Charles
  -- strict thread matches above, loose matches on Subject: below --
2012-02-17 20:58 Limit todo window Richard Riley
2012-04-14 18:27 Capturing to current file Marvin Doyley
2012-04-14 18:32 ` Karl Voit
2012-04-14 21:44   ` Richard Riley
2012-04-14 23:13 Marvin Doyley

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=8582.1334443500@alphaville \
    --to=nicholas.dokos@hp.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).