* Capture for beginners. Dissecting the default template.
@ 2013-12-19 21:12 Brady Trainor
0 siblings, 0 replies; only message in thread
From: Brady Trainor @ 2013-12-19 21:12 UTC (permalink / raw
To: emacs-orgmode
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-12-19 21:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-19 21:12 Capture for beginners. Dissecting the default template Brady Trainor
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.