From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brady Trainor Subject: Capture for beginners. Dissecting the default template. Date: Thu, 19 Dec 2013 21:12:19 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53102) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vtktm-0004Zw-Mh for emacs-orgmode@gnu.org; Thu, 19 Dec 2013 16:12:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vtktg-0005f9-3g for emacs-orgmode@gnu.org; Thu, 19 Dec 2013 16:12:50 -0500 Received: from plane.gmane.org ([80.91.229.3]:47080) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vtktf-0005e0-ST for emacs-orgmode@gnu.org; Thu, 19 Dec 2013 16:12:44 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Vtktd-00074L-01 for emacs-orgmode@gnu.org; Thu, 19 Dec 2013 22:12:41 +0100 Received: from 71-217-31-190.tukw.qwest.net ([71.217.31.190]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 19 Dec 2013 22:12:40 +0100 Received: from algebrat by 71-217-31-190.tukw.qwest.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 19 Dec 2013 22:12:40 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Basically, this is a brain dump. Please offer any advices you think of. In efforts to learn to use capture, I decided to try to understand the defaults. I will mention the location defaults, and the default template. At this time, all of my org-files are in one folder, so I decided to start with a tester file for captures in the same folder, with name: org-default-notes-file "./capturetest.org" (for total newbs, the dot slash refers to the current folder). I also went with the common suggestion for the key binding of (define-key global-map "\C-cc" 'org-capture) (added directly to .emacs file). I then attempted to understand how the default template worked, and how to recreate it in the Customize interface buffer. - key: t - description: Task - type: entry - target location: File & Headline - File: - Headline: Tasks - Template: here was the tricky part. First I had to realize that the * was necessary (skimming for examples in the documentation). Then, I struggled to figure out how to get the newline in there. I could go to the .emacs file and add \n manually, but how to add it in the customize buffer. My current solution is to use M-x newline (not sure if there is a default key binding for this). Thus, I believe the default template can be arrived at via: * TODO M-x newline %t M-x newline %a I now feel more ready to start making my own templates, for instance, my first templates might be entries with certain headlines, prompt for tags, the date added, but for now still heading to the capturetest file. That is, for instance, - Headline: tech-related - Template: * %^G\n%t Brady