From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Capture question Date: Thu, 24 Feb 2011 18:02:28 -0600 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1765179705==" Return-path: Received: from [140.186.70.92] (port=49618 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Psl8j-00026m-2r for emacs-orgmode@gnu.org; Thu, 24 Feb 2011 19:02:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Psl8h-00087R-Q9 for emacs-orgmode@gnu.org; Thu, 24 Feb 2011 19:02:33 -0500 Received: from mail-bw0-f41.google.com ([209.85.214.41]:55782) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Psl8h-00087L-CT for emacs-orgmode@gnu.org; Thu, 24 Feb 2011 19:02:31 -0500 Received: by bwz17 with SMTP id 17so1865595bwz.0 for ; Thu, 24 Feb 2011 16:02:29 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode --===============1765179705== Content-Type: multipart/alternative; boundary=001636c5a315bf768a049d100b00 --001636c5a315bf768a049d100b00 Content-Type: text/plain; charset=ISO-8859-1 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 --001636c5a315bf768a049d100b00 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,


I'm trying to setup capture for t= he first time and am getting some odd behavior. I've been following the= manual and my .emacs has this:

,-----
|=A0;; capture
| (setq org-default-notes-file (concat org-directo= ry "~/org/2011-02Feb.org" "Tracking"))
| (glo= bal-set-key "\C-cc" 'org-capture)
| (setq org-captu= re-templates
| =A0'(("t" "todo" entry (file+headline "= ~/org/2011-02Feb.org" "Tracking")
| =A0 =A0 =A0 = =A0 =A0 =A0 "* TODO %?\n")))
| (define-key global-map &= quot;\C-c c"
| =A0 (lambda () (interactive) (org-capture "t")))
`-----

My questions/issues:
1) The bigg= est 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 st= uff
| ** TODO even more stuff
| * [date]
| ** Notes
| * [date]
| ** Notes
`-----

In other words, I have a file per month and one headline per day wit= h 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 t= he captured note...* [date]
| ...
`-----

So it's like= the captured note gets inserted before a different headline for some reaso= n. I can't expand the captured TODO, but if I highlight the date and ex= pand 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 TOD= O is on a line by itself. Why might this be happening?


2) The manual suggests some methods of a= utomatically 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 &q= uot;handles" I have at my disposal with eslisp to do something like th= at.


3) The manual suggestion of using:
=
,-----
|=A0(define-key global-map "\C-c c"
| =A0 (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 p= roject/customer/etc.). As this is the case, yes, I would love if C-c c auto= matically just brought up the TODO template I have defined above.


Many thanks,
John
--001636c5a315bf768a049d100b00-- --===============1765179705== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============1765179705==--