[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

@ -2328,9 +2328,9 @@ 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}
@ -2363,17 +2363,17 @@ 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
@ -2389,11 +2389,11 @@ 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
@ -2404,11 +2404,11 @@ This capture is used when received through org-protocol, with the Org-protocol E
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
@ -2419,10 +2419,10 @@ 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
@ -2438,9 +2438,9 @@ One type of task I often capture is related to my servers or thing about compute
#+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
@ -2486,10 +2486,10 @@ 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
@ -2499,11 +2499,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/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