[Emacs] Fix leading whitespace in org capture templates

This commit is contained in:
Lucien Cartier-Tilet 2020-12-23 04:52:53 +01:00
parent 7e717ac2aa
commit 9c775aa613
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -2327,10 +2327,10 @@ In the next sub-sections will be described my org capture templates. These are n
This is my template for a new Email:
#+BEGIN_SRC org :mkdirp yes :tangle ~/org/capture/email.orgcaptmpl
,** TODO [#A] Write Email
SCHEDULED: %^t
:PROPERTIES:
:CAPTURED: %U
:END:
SCHEDULED: %^t
:PROPERTIES:
:CAPTURED: %U
:END:
From: Lucien Cartier-Tilet <lucien@phundrak.com>
To: %^{Recipient}
Subject: %^{Object}
@ -2353,7 +2353,7 @@ I use it in case my computer is not yet connected to the internet and I need to
This template is quite simple: it creates a new entry with the current timestamp as its title, a brief title of my choosing, and then I can write whatever I wish to write. This is exported to =~/org/capture/journal.orgcaptmpl=.
#+BEGIN_SRC org :mkdirp yes :tangle ~/org/capture/journal.orgcaptmpl
,* %U %^{Title}
%?
%?
#+END_SRC
***** Notes
@ -2363,23 +2363,23 @@ This template is quite simple: it creates a new entry with the current timestamp
This template is used for taking note about various subjects that can go from conlanging to development. I wrote it so I can know from where this capture was made and when, and it even supports text that was highlighted in Emacs that will be inserted in a quote block. This is exported to =~/org/capture/notes.orgcaptmpl=.
#+BEGIN_SRC org :mkdirp yes :tangle ~/org/capture/notes.orgcaptmpl
,* %^{Title}
:PROPERTIES:
:CAPTURED: %U
:END:
%?
:PROPERTIES:
:CAPTURED: %U
:END:
%?
#+END_SRC
#+BEGIN_SRC org :mkdirp yes :tangle ~/org/capture/notes-quote.orgcaptmpl
,* %^{Title}
:PROPERTIES:
:CAPTURED: %U
:END:
Possible inspiration:
,#+begin_quote
%i
,#+end_quote
:PROPERTIES:
:CAPTURED: %U
:END:
Possible inspiration:
,#+begin_quote
%i
,#+end_quote
%?
%?
#+END_SRC
***** Protocol
@ -2389,27 +2389,27 @@ This template is used for taking note about various subjects that can go from co
This capture is used when received through org-protocol, with the Org-protocol Extension for Firefox. It allows me to save in a quote block what Ive highlighted, as well as the link of the webpage on which my saved content was highlighted. This file is exported to =~/org/capture/protocol.orgcaptmpl=.
#+BEGIN_SRC org :mkdirp yes :tangle ~/org/capture/protocol.orgcaptmpl
,* TODO [#C] %^{Title}
:PROPERTIES:
:CAPTURED: %U
:LINK: %:link
:TITLE: %:description
:END:
,#+begin_quote
%i
,#+end_quote
:PROPERTIES:
:CAPTURED: %U
:LINK: %:link
:TITLE: %:description
:END:
,#+begin_quote
%i
,#+end_quote
%?
%?
#+END_SRC
This next capture template is used only when a link is sent to Emacs and no content was highlighted.
#+BEGIN_SRC org :mkdirp yes :tangle ~/org/capture/protocol-link.orgcaptmpl
,* TODO [#C] Link: %^{Title}
:PROPERTIES:
:CAPTURED: %U
:LINK: %:link
:TITLE: %:description
:END:
%?
:PROPERTIES:
:CAPTURED: %U
:LINK: %:link
:TITLE: %:description
:END:
%?
#+END_SRC
***** Resources
@ -2419,11 +2419,11 @@ This next capture template is used only when a link is sent to Emacs and no cont
This is the default template for resources, which generally are located on the Internet. By default, I give them the lowest priority, because although this is something for me to remember later, it is not by default important. You can see in the properties I record when the capture happened, and what the link is. The title of the capture is a summary of what this is, while the body of the capture is a more detailed explanation of what I capture, why, and how it could be useful to me.
#+BEGIN_SRC org :mkdirp yes :tangle ~/org/capture/resource.orgcaptmpl
,* TODO [#C] %^{Title}
:PROPERTIES:
:CAPTURED: %U
:LINK: %^{Link}
:END:
%?
:PROPERTIES:
:CAPTURED: %U
:LINK: %^{Link}
:END:
%?
#+END_SRC
***** Tasks
@ -2437,11 +2437,11 @@ This is the default template for resources, which generally are located on the I
One type of task I often capture is related to my servers or thing about computers in general. With this, I can capture a task for which I will either set a schedule or a deadline.
#+BEGIN_SRC org :mkdirp yes :tangle ~/org/capture/informatique.orgcaptmpl
,* TODO %^{Title}
%^{Scheduled or Deadline?||SCHEDULED||DEADLINE}: %^t
:PROPERTIES:
:CATEGORY: %^{Category}
:END:
%?
%^{Scheduled or Deadline?||SCHEDULED||DEADLINE}: %^t
:PROPERTIES:
:CATEGORY: %^{Category}
:END:
%?
#+END_SRC
****** Health
@ -2451,9 +2451,9 @@ One type of task I often capture is related to my servers or thing about compute
This capture is rarely used (Im lucky to have a good health), but it can be useful.
#+BEGIN_SRC org :mkdirp yes :tangle ~/org/capture/health.orgcaptmpl
,* %^{Title}
SCHEDULED: %^t
SCHEDULED: %^t
%?
%?
#+END_SRC
****** Birthdays
@ -2463,7 +2463,7 @@ This capture is rarely used (Im lucky to have a good health), but it can be u
This capture is used to store new birthdays I have to remember. They are set to be repeated yearly.
#+BEGIN_SRC org :mkdirp yes :tangle ~/org/capture/birthday.orgcaptmpl
,* %^{Name}
SCHEDULED: %^t
SCHEDULED: %^t
#+END_SRC
****** Events
@ -2472,8 +2472,8 @@ This capture is used to store new birthdays I have to remember. They are set to
:END:
#+BEGIN_SRC org :mkdirp yes :tangle ~/org/capture/event.orgcaptmpl
,* %^{Title}
%^{Scheduled or deadline?||SCHEDULED||DEADLINE}: %^t
%?
%^{Scheduled or deadline?||SCHEDULED||DEADLINE}: %^t
%?
#+END_SRC
***** Links
@ -2486,11 +2486,11 @@ This capture is used to store new birthdays I have to remember. They are set to
:END:
#+BEGIN_SRC org :mkdirp yes :tangle ~/org/capture/link.orgcaptmpl
,* TODO [#C] %^{Title}
:PROPERTIES:
:CAPTURED: %U
:LINK: %^{Link}
:END:
%?
:PROPERTIES:
:CAPTURED: %U
:LINK: %^{Link}
:END:
%?
#+END_SRC
****** YouTube
@ -2499,12 +2499,12 @@ This capture is used to store new birthdays I have to remember. They are set to
:END:
#+BEGIN_SRC org :mkdirp yes :tangle ~/org/capture/youtube.orgcaptmpl
,* TODO [#C] %^{Title}
:PROPERTIES:
:CAPTURED: %U
:AUTHOR: %^{Author}
:LINK: %^{Link}
:END:
%?
:PROPERTIES:
:CAPTURED: %U
:AUTHOR: %^{Author}
:LINK: %^{Link}
:END:
%?
#+END_SRC
**** Custom org-mode functions