Added my notes to my agenda, updated capture templates

I also completed my comment about the protocol templates, and I
removed a piece of Elisp code not used anymore
This commit is contained in:
Lucien Cartier-Tilet 2020-02-25 12:35:16 +01:00
parent 1fa563b74a
commit 11517d9c0b
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA
1 changed files with 5 additions and 17 deletions

View File

@ -2511,7 +2511,7 @@
One awesome feature of Org mode is the agenda. By default, my agendas are One awesome feature of Org mode is the agenda. By default, my agendas are
stored in =~/org/agenda=. stored in =~/org/agenda=.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(setq org-agenda-files (list "~/org/agenda")) (setq org-agenda-files (list "~/org/agenda" "~/org/notes.org"))
#+END_SRC #+END_SRC
I also have a custom command in Org agenda to mark some tasks as daily I also have a custom command in Org agenda to mark some tasks as daily
@ -2676,7 +2676,7 @@
:PROPERTIES: :PROPERTIES:
:CAPTURED: %U :CAPTURED: %U
:LINK: %:link :LINK: %:link
:TITLE: %:(transform-square-brackets-to-round-ones \"%:description\") :TITLE: %:description
:END: :END:
,#+begin_quote ,#+begin_quote
%i %i
@ -2685,30 +2685,18 @@
%? %?
#+END_SRC #+END_SRC
For the next This next capture template is used only when a link is sent to Emacs and no
content was highlighted.
#+BEGIN_SRC org :tangle ~/org/capture/protocol-link.orgcaptmpl #+BEGIN_SRC org :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: %(transform-square-brackets-to-round-ones \"%:description\") :TITLE: %:description
:END: :END:
%? %?
#+END_SRC #+END_SRC
#+BEGIN_SRC emacs-lisp
(defun transform-square-brackets-to-round-ones (string-to-transform)
"Transforms [ into ( and ] into ), other chars left unchanged."
(concat
(mapcar #'(lambda (c)
(if (equal c ?[)
?\(
(if (equal c ?])
?\)
c)))
string-to-transform)))
#+END_SRC
**** Resources **** Resources
:PROPERTIES: :PROPERTIES:
:CUSTOM_ID: h-001eb681-1725-442d-91ef-b6a46c1784dc :CUSTOM_ID: h-001eb681-1725-442d-91ef-b6a46c1784dc