[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] Re: [Orgmode] Capture question
From: |
Bastien |
Subject: |
[O] Re: [Orgmode] Capture question |
Date: |
Sun, 06 Mar 2011 18:24:39 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Hi John,
John Hendy <address@hidden> writes:
> I can't be that odd :)
Well, html emails don't help :/
> 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")
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
Note the "\C-cx" (with no space) and the additional nil.
HTH,
--
Bastien
- [O] Re: [Orgmode] Capture question, Bastien, 2011/03/06
- [O] Re: [Orgmode] Capture question, John Hendy, 2011/03/06
- [O] Re: [Orgmode] Capture question,
Bastien <=
- [O] Re: [Orgmode] Capture question, John Hendy, 2011/03/06
- Re: [O] Re: [Orgmode] Capture question, suvayu ali, 2011/03/06
- Re: [O] Re: [Orgmode] Capture question, John Hendy, 2011/03/06
- Re: [O] Re: [Orgmode] Capture question, Suvayu Ali, 2011/03/06
- [O] Re: Capture question, Matt Lundin, 2011/03/19
- [O] Re: Capture question, Suvayu Ali, 2011/03/19
- [O] Re: [Orgmode] Capture question, Bastien, 2011/03/07