On Sun, Mar 6, 2011 at 11:24 AM, Bastien <bzg@altern.org> wrote:
Hi John,

John Hendy <jw.hendy@gmail.com> writes:

> I can't be that odd :)

Well, html emails don't help :/

Really? I just send via gmail. Have I been polluting the list somehow? Have my emails been showing up weird to everyone or something? Yikes -- I had no idea.

Or do you just mean compared to sending via some emacs email client?
 

> 1) I think this is solved.

Ok, thanks.

> 2) The manual says this as to one of the options for the capture
> target:
> ,-----
> | (function function-finding-location)
> |   Most general way, write your own function to find both file and
> location
> `-----
>
> Since my files always use the format YYYY-##MMM.org (2011-03Mar.org),
> I thought I could sure find a function that finds the current file
> rather than changing my capture target manually once a month.

See my recent reply to Sullivan: you can use

 (file+heading buffer-file-name "Heading")

I'll check that out.
 

in the template.  buffer-file-name is a function return the file name of
the currently visited file (obviously) -- so that should help.

> 3) I think this one was pretty clear... the manual says that if I do
> this:
> ,-----
> | (define-key global-map "\C-c c"
> |   (lambda () (interactive) (org-capture "t")))
> `-----
>
> I won't have to manually select "t" (TODO) for my capture template
> via the interactive window. Since I only use one capture template, it
> would be fantastic to have it automatically use it instead of asking
> me what I want to use and then I press another keystroke to select
> one template out of one available template.

There was two "typos" -- the example is now:

#+begin_src emacs-lisp
(define-key global-map "\C-cx"
 (lambda () (interactive) (org-capture nil "x")))
#+end_src


Fantastic. That does it. When do things get pushed to the manual? Or is that an as-it's-spotted-it-gets-changed kind of thing? It's still the old way here: http://orgmode.org/manual/Capture-templates.html#Capture-templates


Thanks for the help,
John
 
Note the "\C-cx" (with no space) and the additional nil.

HTH,

--
 Bastien