[Emacs] Update and fix org capture
This commit is contained in:
parent
6519fa6793
commit
ac9c34dcf1
@ -2411,6 +2411,7 @@ Will be exported as if it were the buffer
|
||||
**** Capture
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: User_Configuration-Org-mode-Org_capture-f58979cf
|
||||
:header-args:org: :mkdirp yes
|
||||
:END:
|
||||
Org-capture is an amazing feature of Org-mode which allows me to quickly save links, resources, reminders, and notes in neatly organized org files. Here they are described:
|
||||
#+NAME: org-capture-target-files
|
||||
@ -2433,7 +2434,7 @@ With Spacemacs, an Org capture can be invoked with the shortcut ~SPC a o c~. It
|
||||
| ew | Write Email | Emails | file+headline | org-default-notes-file | emails.orgcaptmpl |
|
||||
| j | Journal | | file+datetree | org-journal-file | journal.orgcaptmpl |
|
||||
| l | Link | | | | |
|
||||
| ll | General | | file+headline | org-default-notes-file | |
|
||||
| ll | General | | file+headline | org-default-notes-file | link.orgcaptmpl |
|
||||
| ly | YouTube | | file+headline | org-default-notes-file | youtube.orgcaptmpl |
|
||||
| L | Protocol Link | Link | file+headline | org-default-notes-file | protocol-link.orgcaptmpl |
|
||||
| n | Notes | | | | |
|
||||
@ -2450,6 +2451,7 @@ With Spacemacs, an Org capture can be invoked with the shortcut ~SPC a o c~. It
|
||||
| re | Emacs | | file+headline | org-default-notes-file | resource.orgcaptmpl |
|
||||
| ri | Informatique | | file+headline | org-default-notes-file | resource.orgcaptmpl |
|
||||
| rl | Linguistics | | file+headline | org-default-notes-file | resource.orgcaptmpl |
|
||||
| rL | Linux | | file+headline | org-default-notes-file | resource.orgcaptmpl |
|
||||
| rw | Worldbuilding | Resource | file+headline | org-wordbuilding-file | resource.orgcaptmpl |
|
||||
| t | Tasks | | | | |
|
||||
| tb | Birthday | | file+headline | org-private-agenda-file | birthday.orgcaptmpl |
|
||||
@ -2479,7 +2481,7 @@ The following code snipped is not tangled into my configuration file, but instea
|
||||
table "\n "))
|
||||
#+END_SRC
|
||||
|
||||
#+RESULTS[1fec26dc1d0158ebcaf9b282eb997901321593fa]: org-capture-shortcut-gen
|
||||
#+RESULTS[d5195b883b39aa51a31e7e572d2eaf8b09c434cd]: org-capture-shortcut-gen
|
||||
#+begin_example
|
||||
'(("e" "Email")
|
||||
("ew" "Write Email" entry
|
||||
@ -2491,7 +2493,7 @@ The following code snipped is not tangled into my configuration file, but instea
|
||||
("l" "Link")
|
||||
("ll" "General" entry
|
||||
(file+headline org-default-notes-file "General")
|
||||
(file "~/org/capture/"))
|
||||
(file "~/org/capture/link.orgcaptmpl"))
|
||||
("ly" "YouTube" entry
|
||||
(file+headline org-default-notes-file "YouTube")
|
||||
(file "~/org/capture/youtube.orgcaptmpl"))
|
||||
@ -2534,6 +2536,9 @@ The following code snipped is not tangled into my configuration file, but instea
|
||||
("rl" "Linguistics" entry
|
||||
(file+headline org-default-notes-file "Linguistics")
|
||||
(file "~/org/capture/resource.orgcaptmpl"))
|
||||
("rL" "Linux" entry
|
||||
(file+headline org-default-notes-file "Linux")
|
||||
(file "~/org/capture/resource.orgcaptmpl"))
|
||||
("rw" "Worldbuilding" entry
|
||||
(file+headline org-wordbuilding-file "Resource")
|
||||
(file "~/org/capture/resource.orgcaptmpl"))
|
||||
@ -2569,7 +2574,7 @@ In the next sub-sections will be described my org capture templates. These are n
|
||||
:CUSTOM_ID: User_Configuration-Org-mode-Org_capture-Emails-d87336fe
|
||||
:END:
|
||||
This is my template for a new Email:
|
||||
#+BEGIN_SRC org :mkdirp yes :tangle ~/org/capture/email.orgcaptmpl
|
||||
#+BEGIN_SRC org :tangle ~/org/capture/email.orgcaptmpl
|
||||
,** TODO [#A] Write Email
|
||||
SCHEDULED: %^t
|
||||
:PROPERTIES:
|
||||
@ -2595,7 +2600,7 @@ I use it in case my computer is not yet connected to the internet and I need to
|
||||
:CUSTOM_ID: User_Configuration-Org-mode-Org_capture-Journal-9916f9bf
|
||||
:END:
|
||||
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 :tangle ~/org/capture/journal.orgcaptmpl
|
||||
,* %U %^{Title}
|
||||
%?
|
||||
#+END_SRC
|
||||
@ -2605,7 +2610,7 @@ This template is quite simple: it creates a new entry with the current timestamp
|
||||
:CUSTOM_ID: User_Configuration-Org-mode-Org_capture-Notes-4b4c10aa
|
||||
:END:
|
||||
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 :tangle ~/org/capture/notes.orgcaptmpl
|
||||
,* %^{Title}
|
||||
:PROPERTIES:
|
||||
:CAPTURED: %U
|
||||
@ -2613,7 +2618,7 @@ This template is used for taking note about various subjects that can go from co
|
||||
%?
|
||||
#+END_SRC
|
||||
|
||||
#+BEGIN_SRC org :mkdirp yes :tangle ~/org/capture/notes-quote.orgcaptmpl
|
||||
#+BEGIN_SRC org :tangle ~/org/capture/notes-quote.orgcaptmpl
|
||||
,* %^{Title}
|
||||
:PROPERTIES:
|
||||
:CAPTURED: %U
|
||||
@ -2631,7 +2636,7 @@ This template is used for taking note about various subjects that can go from co
|
||||
:CUSTOM_ID: User_Configuration-Org-mode-Org_capture-Protocol-ec45ec49
|
||||
:END:
|
||||
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 I’ve 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 :tangle ~/org/capture/protocol.orgcaptmpl
|
||||
,* TODO [#C] %^{Title}
|
||||
:PROPERTIES:
|
||||
:CAPTURED: %U
|
||||
@ -2646,7 +2651,7 @@ This capture is used when received through org-protocol, with the Org-protocol E
|
||||
#+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
|
||||
#+BEGIN_SRC org :tangle ~/org/capture/protocol-link.orgcaptmpl
|
||||
,* TODO [#C] Link: %^{Title}
|
||||
:PROPERTIES:
|
||||
:CAPTURED: %U
|
||||
@ -2661,7 +2666,7 @@ This next capture template is used only when a link is sent to Emacs and no cont
|
||||
:CUSTOM_ID: User_Configuration-Org-mode-Org_capture-Resources-b23bfbd0
|
||||
:END:
|
||||
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 :tangle ~/org/capture/resource.orgcaptmpl
|
||||
,* TODO [#C] %^{Title}
|
||||
:PROPERTIES:
|
||||
:CAPTURED: %U
|
||||
@ -2679,7 +2684,7 @@ This is the default template for resources, which generally are located on the I
|
||||
:CUSTOM_ID: User_Configuration-Org-mode-Org_capture-Tasks-Computers_and_stuff-a4eef8e3
|
||||
:END:
|
||||
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 :tangle ~/org/capture/informatique.orgcaptmpl
|
||||
,* TODO %^{Title}
|
||||
%^{Scheduled or Deadline?||SCHEDULED||DEADLINE}: %^t
|
||||
:PROPERTIES:
|
||||
@ -2693,7 +2698,7 @@ One type of task I often capture is related to my servers or thing about compute
|
||||
:CUSTOM_ID: User_Configuration-Org-mode-Org_capture-Tasks-Health-74f8f338
|
||||
:END:
|
||||
This capture is rarely used (I’m lucky to have a good health), but it can be useful.
|
||||
#+BEGIN_SRC org :mkdirp yes :tangle ~/org/capture/health.orgcaptmpl
|
||||
#+BEGIN_SRC org :tangle ~/org/capture/health.orgcaptmpl
|
||||
,* %^{Title}
|
||||
SCHEDULED: %^t
|
||||
|
||||
@ -2705,7 +2710,7 @@ This capture is rarely used (I’m lucky to have a good health), but it can be u
|
||||
:CUSTOM_ID: User_Configuration-Org-mode-Org_capture-Tasks-Birthdays-ec3b27be
|
||||
:END:
|
||||
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 :tangle ~/org/capture/birthday.orgcaptmpl
|
||||
,* %^{Name}
|
||||
SCHEDULED: %^t
|
||||
#+END_SRC
|
||||
@ -2714,7 +2719,7 @@ This capture is used to store new birthdays I have to remember. They are set to
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: User_Configuration-Org-mode-Org_capture-Tasks-Events-7f0f8dee
|
||||
:END:
|
||||
#+BEGIN_SRC org :mkdirp yes :tangle ~/org/capture/event.orgcaptmpl
|
||||
#+BEGIN_SRC org :tangle ~/org/capture/event.orgcaptmpl
|
||||
,* %^{Title}
|
||||
%^{Scheduled or deadline?||SCHEDULED||DEADLINE}: %^t
|
||||
%?
|
||||
@ -2728,7 +2733,7 @@ This capture is used to store new birthdays I have to remember. They are set to
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: User_Configuration-Org-mode-Org_capture-Links-General-1f0732db
|
||||
:END:
|
||||
#+BEGIN_SRC org :mkdirp yes :tangle ~/org/capture/link.orgcaptmpl
|
||||
#+BEGIN_SRC org :tangle ~/org/capture/link.orgcaptmpl
|
||||
,* TODO [#C] %^{Title}
|
||||
:PROPERTIES:
|
||||
:CAPTURED: %U
|
||||
@ -2741,7 +2746,7 @@ This capture is used to store new birthdays I have to remember. They are set to
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: User_Configuration-Org-mode-Org_capture-Links-YouTube-b89fe20e
|
||||
:END:
|
||||
#+BEGIN_SRC org :mkdirp yes :tangle ~/org/capture/youtube.orgcaptmpl
|
||||
#+BEGIN_SRC org :tangle ~/org/capture/youtube.orgcaptmpl
|
||||
,* TODO [#C] %^{Title}
|
||||
:PROPERTIES:
|
||||
:CAPTURED: %U
|
||||
|
Loading…
Reference in New Issue
Block a user