emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Capture question
@ 2011-02-25  0:02 John Hendy
  2011-03-06 13:19 ` Bastien
  0 siblings, 1 reply; 14+ messages in thread
From: John Hendy @ 2011-02-25  0:02 UTC (permalink / raw)
  To: emacs-orgmode


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

^ permalink raw reply	[flat|nested] 14+ messages in thread
* Capture Question
@ 2011-06-02  8:30 Robert Inder
  0 siblings, 0 replies; 14+ messages in thread
From: Robert Inder @ 2011-06-02  8:30 UTC (permalink / raw)
  To: emacs-orgmode

I'm trying to start using Capture, and I'd like to set up a template to
capture a TODO to go "right here" --- i.e. at the point where the cursor is
when I invoke capture.

I can do that OK.

EXCEPT that it always sets the headline level of the new element
to that of a child of the currently clocking task.  I'd LIKE to set it
to the level
for the current location -- so that it fits in "where I am now".

Is there a way to do that?

Related question: is there a function that will tell me about the
entry that I'm currently in?

Robert

Robert Inder,                                    0131 229 1052 / 07808 492 213
Interactive Information Ltd,   3, Lauriston Gardens, Edinburgh EH3 9HH
Registered in Scotland, Company no. SC 150689
                                           Interactions speak louder than words

^ permalink raw reply	[flat|nested] 14+ messages in thread
* capture question
@ 2011-08-11 16:52 Mark Scala
  2011-08-11 23:32 ` Bernt Hansen
  0 siblings, 1 reply; 14+ messages in thread
From: Mark Scala @ 2011-08-11 16:52 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 739 bytes --]

Hi,

I've been using capture for, among other things, capturing interruptions to
clocked tasks.  For this, I use something like the following template:

("i" "interruption" entry (file "refile.org") "A TEMPLATE HERE" :clock-in t
:clock-resume t)

One thing that has been bothering me is that there are really two types of
interruption that deserve different treatment.  Sometimes the interrupting
task is completed by the time I file it with C-c C-c.  Other times it is
not.  But both types are filed with the todo keyword STARTED.  For those
(and only those) interruptions that are finished by the time I file them,
I'd like them to have the keyword DONE automatically.  Has anyone
encountered this case and found a solution?

Best,
Mark

[-- Attachment #2: Type: text/html, Size: 858 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2011-08-11 23:32 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-25  0:02 Capture question John Hendy
2011-03-06 13:19 ` 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

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