emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Phil Hudson <phil.hudson@iname.com>
To: Xebar Saram <zeltakc@gmail.com>
Cc: org mode <emacs-orgmode@gnu.org>
Subject: Re: org mode capture to headline at point
Date: Fri, 13 May 2016 18:07:32 +0100	[thread overview]
Message-ID: <87a8jt51zv.fsf@quiz.hudson-it.ddns.net> (raw)
In-Reply-To: <CAOQHXPq1AeBh1Gd0oEB_5A-6QM9x1_i0wW8wsRoz_WJAWrsafg@mail.gmail.com> (Xebar Saram's message of "Fri, 13 May 2016 18:08:04 +0300")

On Fri, 13 May 2016 at  4:08:04 pm BST, Xebar Saram <zeltakc@gmail.com> wrote:

> any one knows how to launch a capture (thats pre defined) but auto refile that
> capture to the/beneath the current header at point?

Hope I've understood your requirement correctly. I think this will do
what you want:

If you can redefine the capture template, then use the 'function' target
location option and specify a function that either does nothing (if you
will always have point /exactly/ where you want the capture inserted
before you invoke capture), or else one that inserts the start of a new
entry below point. Then you can just C-c C-c to get your capture where
you want it instead of C-c C-w, no refile required.

-- 
Phil Hudson                   http://hudson-it.ddns.net
@UWascalWabbit                 PGP/GnuPG ID: 0x887DCA63

  reply	other threads:[~2016-05-13 17:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-13 15:08 org mode capture to headline at point Xebar Saram
2016-05-13 17:07 ` Phil Hudson [this message]
2016-05-24 15:27 ` Ian McB
2016-05-28  5:49   ` Xebar Saram
2016-05-28 14:00     ` yanmcbe
2016-05-29 15:07       ` Xebar Saram

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=87a8jt51zv.fsf@quiz.hudson-it.ddns.net \
    --to=phil.hudson@iname.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=zeltakc@gmail.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).