From: John Hendy <jw.hendy@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Capture question
Date: Thu, 24 Feb 2011 18:02:28 -0600 [thread overview]
Message-ID: <AANLkTin8OyLB+ETVoiAafFbGuNJDJEeY84=Wu+98w7pX@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 2422 bytes --]
Hi,
I'm trying to setup capture for the first time and am getting some odd
behavior. I've been following the manual and my .emacs has this:
,-----
| ;; capture
| (setq org-default-notes-file (concat org-directory "~/org/2011-02Feb.org"
"Tracking"))
| (global-set-key "\C-cc" 'org-capture)
| (setq org-capture-templates
| '(("t" "todo" entry (file+headline "~/org/2011-02Feb.org" "Tracking")
| "* TODO %?\n")))
| (define-key global-map "\C-c c"
| (lambda () (interactive) (org-capture "t")))
`-----
My questions/issues:
1) The biggest is that when I capture and then use C-c C-c to file it, I'm
getting odd headline behavior. My file structure is like so:
,-----
| ~/org/2011-02Feb.org
`-----
| #+ setupfile: ~/path/to/setupfile.org
| * Tracking
| ** TODO stuff
| ** TODO more stuff
| ** TODO even more stuff
| * [date]
| ** Notes
| * [date]
| ** Notes
`-----
In other words, I have a file per month and one headline per day with my
work notes. When I use capture, I get this when I visit the file next:
,-----
| * Tracking
| ** TODO stuff
| ** TODO more stuff
| ** TODO even more stuff
| ** TODO the captured note...* [date]
| ...
`-----
So it's like the captured note gets inserted before a different headline for
some reason. I can't expand the captured TODO, but if I highlight the date
and expand it, then it rights itself and the * [date] that's appended to the
captured TODO goes back to being a first level headline and the capture TODO
is on a line by itself. Why might this be happening?
2) The manual suggests some methods of automatically setting the capture
target when using templates. My files are always "year-##Month.org" (like
2011-02Feb.org). Could I set this somehow to automatically cycle based on
the date? I don't know what "handles" I have at my disposal with eslisp to
do something like that.
3) The manual suggestion of using:
,-----
| (define-key global-map "\C-c c"
| (lambda () (interactive) (org-capture "t")))
`-----
does not seem to be working. I still have to pick [t] when the capture
template window pops up. I won't really use capture for anything else
besides refilling todos and starting a clock since I only am ever using one
file rather (since it's time based note-taking vs. having a file per
project/customer/etc.). As this is the case, yes, I would love if C-c c
automatically just brought up the TODO template I have defined above.
Many thanks,
John
[-- Attachment #1.2: Type: text/html, Size: 3427 bytes --]
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
next reply other threads:[~2011-02-25 0:02 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-25 0:02 John Hendy [this message]
2011-03-06 13:19 ` Capture question Bastien
2011-03-06 16:16 ` John Hendy
2011-03-06 17:24 ` Bastien
2011-03-06 18:12 ` John Hendy
2011-03-06 19:47 ` suvayu ali
2011-03-06 20:06 ` John Hendy
2011-03-06 20:33 ` Suvayu Ali
2011-03-19 14:41 ` Matt Lundin
2011-03-19 14:46 ` Suvayu Ali
2011-03-07 8:24 ` Bastien
-- strict thread matches above, loose matches on Subject: below --
2011-06-02 8:30 Capture Question Robert Inder
2011-08-11 16:52 capture question Mark Scala
2011-08-11 23:32 ` Bernt Hansen
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='AANLkTin8OyLB+ETVoiAafFbGuNJDJEeY84=Wu+98w7pX@mail.gmail.com' \
--to=jw.hendy@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).