From 11517d9c0bfb663ff88d2cb200c3a1bb776e007a Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Tue, 25 Feb 2020 12:35:16 +0100 Subject: [PATCH] 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 --- org/config/spacemacs.org | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/org/config/spacemacs.org b/org/config/spacemacs.org index faa781a..93f829c 100644 --- a/org/config/spacemacs.org +++ b/org/config/spacemacs.org @@ -2511,7 +2511,7 @@ One awesome feature of Org mode is the agenda. By default, my agendas are stored in =~/org/agenda=. #+BEGIN_SRC emacs-lisp - (setq org-agenda-files (list "~/org/agenda")) + (setq org-agenda-files (list "~/org/agenda" "~/org/notes.org")) #+END_SRC I also have a custom command in Org agenda to mark some tasks as daily @@ -2676,7 +2676,7 @@ :PROPERTIES: :CAPTURED: %U :LINK: %:link - :TITLE: %:(transform-square-brackets-to-round-ones \"%:description\") + :TITLE: %:description :END: ,#+begin_quote %i @@ -2685,30 +2685,18 @@ %? #+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 ,* TODO [#C] Link: %^{Title} :PROPERTIES: :CAPTURED: %U :LINK: %:link - :TITLE: %(transform-square-brackets-to-round-ones \"%:description\") + :TITLE: %:description :END: %? #+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 :PROPERTIES: :CUSTOM_ID: h-001eb681-1725-442d-91ef-b6a46c1784dc