all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Brady Trainor <algebrat@uw.edu>
To: emacs-orgmode@gnu.org
Subject: Capture for beginners. Dissecting the default template.
Date: Thu, 19 Dec 2013 21:12:19 +0000 (UTC)	[thread overview]
Message-ID: <loom.20131219T215156-109@post.gmane.org> (raw)

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: <empty> 

  - 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 <RET> 
(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 <RET> %t M-x newline <RET> %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

                 reply	other threads:[~2013-12-19 21:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loom.20131219T215156-109@post.gmane.org \
    --to=algebrat@uw.edu \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.