emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: David Belohrad <david@belohrad.ch>
To: org-mode <emacs-orgmode@gnu.org>
Subject: capture template for interval
Date: Mon, 16 Jun 2014 16:36:32 +0200	[thread overview]
Message-ID: <uaxbntsrken.fsf@beesknees.cern.ch> (raw)


Dear All,

with a help of this mailinglist I have setup my capture template for
appointments as follows:

(setq org-capture-templates
        '(
	        ("a" "Appointment (compulsory)" entry (file+datetree (concat my-org-files "diary.org"))
           "* %? :appt:\n%a\n%^T\n\nEntered on %U")
          ))


This makes appointment in the diary.org file, it puts there a link to
the actually visited file (notmuch buffer mostly) and then asks for a
date+time.

Now this appears in my agenda, but only as as a simple date. Now I'd
like to get it done in a way that I enter one date time, and another one
is 'offered' to me in 2 hours in the future from the date I have given
as first.

So basically if I do not put the second date, it will by default create
an interval long 2 hours. 

any possibility how to do this?

many thanks
..d

             reply	other threads:[~2014-06-16 14:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-16 14:36 David Belohrad [this message]
2014-07-27 22:57 ` capture template for interval Bastien

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=uaxbntsrken.fsf@beesknees.cern.ch \
    --to=david@belohrad.ch \
    --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).