Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Victor Stoichita
emacs-config
Commits
ab8099ba
Commit
ab8099ba
authored
Oct 13, 2020
by
Victor A. Stoichiţă
Browse files
[org] simplify capture templates
parent
12b7e7be
Changes
1
Hide whitespace changes
Inline
Side-by-side
orgmode_init.el
View file @
ab8099ba
...
...
@@ -194,11 +194,11 @@ TYPES is a list of todo states to check and maybe skip."
(
setq
org-capture-templates
'
(
;; Events and todos
(
"e"
"Événement"
entry
(
file
"~/calendriers/victor.org"
)
"* %?
\n
%^t\n
:PROPERTIES:\n:CAPTURED: %U\n :END:\n
%i"
:kill-buffer
t
)
(
"
f
"
"
Faire
"
entry
(
file
"~/org/in.org"
)
"*
FAIRE %i%?\n:PROPERTIES:\n:CAPTURED: %U\n:END:
\n%i"
:kill-buffer
t
)
(
"T"
"Tickler"
entry
(
file
"~/org/tickler.org"
)
"*
FAIRE %?\n%t:PROPERTIES:\n:CAPTURED: %U\n:END:
\n%i"
:kill-buffer
t
)
"* %?
%^t\n%i"
:kill-buffer
t
)
(
"
i
"
"
Inbox
"
entry
(
file
"~/org/in.org"
)
"*
%i%?
\n%i"
:kill-buffer
t
)
(
"T"
"Tickler"
entry
(
file
+headline
"~/org/tickler.org"
"Occasionels"
)
"*
TODO %? %t
\n%i"
:kill-buffer
t
)
;; Thoughts and references
(
"i"
"Idée"
entry
(
file
"~/notes/idees.org"
)
...
...
@@ -214,14 +214,12 @@ TYPES is a list of todo states to check and maybe skip."
"* %U %^{Titre} %i %?\n %c \n"
:kill-buffer
t
)
;; This will only be shown in mail buffers. Goes directly to current projects
(
"m"
"Mail (répondre)"
entry
(
file
+headline
"~/org/encours.org"
"Mail
"
)
"*
FAI
RE %a :mail:\
nSCHEDULED: %(org-insert-time-stamp (org-read-date nil t \"+1d\")) DEADLINE: %(org-insert-time-stamp (org-read-date nil t \"+3d\"))\
n"
:prepend
t
:kill-bufer
t
)))
(
"m"
"Mail (répondre)"
entry
(
file
"~/org/repondre.org
"
)
"*
RÉPOND
RE %a :mail:\n"
:prepend
t
:kill-bufer
t
)))
;; Only show these templates in mail read buffers
(
setq
org-capture-templates-contexts
'
((
"m"
((
in-mode
.
"mu4e-view"
)))
(
"u"
((
in-mode
.
"mu4e-view"
)))
(
"n"
((
in-mode
.
"mu4e-view"
)))))
'
((
"m"
((
in-mode
.
"mu4e-view"
)))))
;;; ATTACH:
(
setq
org-attach-method
'mv
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment