[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: This is my template for a new Email:
#+BEGIN_SRC org :mkdirp yes :tangle ~/org/capture/email.orgcaptmpl #+BEGIN_SRC org :mkdirp yes :tangle ~/org/capture/email.orgcaptmpl
,** TODO [#A] Write Email ,** TODO [#A] Write Email
SCHEDULED: %^t SCHEDULED: %^t
:PROPERTIES: :PROPERTIES:
:CAPTURED: %U :CAPTURED: %U
:END: :END:
From: Lucien Cartier-Tilet <lucien@phundrak.com> From: Lucien Cartier-Tilet <lucien@phundrak.com>
To: %^{Recipient} To: %^{Recipient}
Subject: %^{Object} 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=. 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 #+BEGIN_SRC org :mkdirp yes :tangle ~/org/capture/journal.orgcaptmpl
,* %U %^{Title} ,* %U %^{Title}
%? %?
#+END_SRC #+END_SRC
***** Notes ***** 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=. 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 #+BEGIN_SRC org :mkdirp yes :tangle ~/org/capture/notes.orgcaptmpl
,* %^{Title} ,* %^{Title}
:PROPERTIES: :PROPERTIES:
:CAPTURED: %U :CAPTURED: %U
:END: :END:
%? %?
#+END_SRC #+END_SRC
#+BEGIN_SRC org :mkdirp yes :tangle ~/org/capture/notes-quote.orgcaptmpl #+BEGIN_SRC org :mkdirp yes :tangle ~/org/capture/notes-quote.orgcaptmpl
,* %^{Title} ,* %^{Title}
:PROPERTIES: :PROPERTIES:
:CAPTURED: %U :CAPTURED: %U
:END: :END:
Possible inspiration: Possible inspiration:
,#+begin_quote ,#+begin_quote
%i %i
,#+end_quote ,#+end_quote
%? %?
#+END_SRC #+END_SRC
***** Protocol ***** 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=. 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 #+BEGIN_SRC org :mkdirp yes :tangle ~/org/capture/protocol.orgcaptmpl
,* TODO [#C] %^{Title} ,* TODO [#C] %^{Title}
:PROPERTIES: :PROPERTIES:
:CAPTURED: %U :CAPTURED: %U
:LINK: %:link :LINK: %:link
:TITLE: %:description :TITLE: %:description
:END: :END:
,#+begin_quote ,#+begin_quote
%i %i
,#+end_quote ,#+end_quote
%? %?
#+END_SRC #+END_SRC
This next capture template is used only when a link is sent to Emacs and no content was highlighted. 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 #+BEGIN_SRC org :mkdirp yes :tangle ~/org/capture/protocol-link.orgcaptmpl
,* TODO [#C] Link: %^{Title} ,* TODO [#C] Link: %^{Title}
:PROPERTIES: :PROPERTIES:
:CAPTURED: %U :CAPTURED: %U
:LINK: %:link :LINK: %:link
:TITLE: %:description :TITLE: %:description
:END: :END:
%? %?
#+END_SRC #+END_SRC
***** Resources ***** 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. 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 #+BEGIN_SRC org :mkdirp yes :tangle ~/org/capture/resource.orgcaptmpl
,* TODO [#C] %^{Title} ,* TODO [#C] %^{Title}
:PROPERTIES: :PROPERTIES:
:CAPTURED: %U :CAPTURED: %U
:LINK: %^{Link} :LINK: %^{Link}
:END: :END:
%? %?
#+END_SRC #+END_SRC
***** Tasks ***** 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. 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 #+BEGIN_SRC org :mkdirp yes :tangle ~/org/capture/informatique.orgcaptmpl
,* TODO %^{Title} ,* TODO %^{Title}
%^{Scheduled or Deadline?||SCHEDULED||DEADLINE}: %^t %^{Scheduled or Deadline?||SCHEDULED||DEADLINE}: %^t
:PROPERTIES: :PROPERTIES:
:CATEGORY: %^{Category} :CATEGORY: %^{Category}
:END: :END:
%? %?
#+END_SRC #+END_SRC
****** Health ****** 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. 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 #+BEGIN_SRC org :mkdirp yes :tangle ~/org/capture/health.orgcaptmpl
,* %^{Title} ,* %^{Title}
SCHEDULED: %^t SCHEDULED: %^t
%? %?
#+END_SRC #+END_SRC
****** Birthdays ****** 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. 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 #+BEGIN_SRC org :mkdirp yes :tangle ~/org/capture/birthday.orgcaptmpl
,* %^{Name} ,* %^{Name}
SCHEDULED: %^t SCHEDULED: %^t
#+END_SRC #+END_SRC
****** Events ****** Events
@ -2472,8 +2472,8 @@ This capture is used to store new birthdays I have to remember. They are set to
:END: :END:
#+BEGIN_SRC org :mkdirp yes :tangle ~/org/capture/event.orgcaptmpl #+BEGIN_SRC org :mkdirp yes :tangle ~/org/capture/event.orgcaptmpl
,* %^{Title} ,* %^{Title}
%^{Scheduled or deadline?||SCHEDULED||DEADLINE}: %^t %^{Scheduled or deadline?||SCHEDULED||DEADLINE}: %^t
%? %?
#+END_SRC #+END_SRC
***** Links ***** Links
@ -2486,11 +2486,11 @@ This capture is used to store new birthdays I have to remember. They are set to
:END: :END:
#+BEGIN_SRC org :mkdirp yes :tangle ~/org/capture/link.orgcaptmpl #+BEGIN_SRC org :mkdirp yes :tangle ~/org/capture/link.orgcaptmpl
,* TODO [#C] %^{Title} ,* TODO [#C] %^{Title}
:PROPERTIES: :PROPERTIES:
:CAPTURED: %U :CAPTURED: %U
:LINK: %^{Link} :LINK: %^{Link}
:END: :END:
%? %?
#+END_SRC #+END_SRC
****** YouTube ****** YouTube
@ -2499,12 +2499,12 @@ This capture is used to store new birthdays I have to remember. They are set to
:END: :END:
#+BEGIN_SRC org :mkdirp yes :tangle ~/org/capture/youtube.orgcaptmpl #+BEGIN_SRC org :mkdirp yes :tangle ~/org/capture/youtube.orgcaptmpl
,* TODO [#C] %^{Title} ,* TODO [#C] %^{Title}
:PROPERTIES: :PROPERTIES:
:CAPTURED: %U :CAPTURED: %U
:AUTHOR: %^{Author} :AUTHOR: %^{Author}
:LINK: %^{Link} :LINK: %^{Link}
:END: :END:
%? %?
#+END_SRC #+END_SRC
**** Custom org-mode functions **** Custom org-mode functions