emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/svg-tag-mode d9a803a92e 49/63: Added date without time


From: ELPA Syncer
Subject: [elpa] externals/svg-tag-mode d9a803a92e 49/63: Added date without time format example.
Date: Mon, 27 Dec 2021 15:58:00 -0500 (EST)

branch: externals/svg-tag-mode
commit d9a803a92eae68af4cbcaf18001b36aed1442803
Author: Nicolas P. Rougier <Nicolas.Rougier@inria.fr>
Commit: Nicolas P. Rougier <Nicolas.Rougier@inria.fr>

    Added date without time format example.
---
 examples/example-2.el | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/examples/example-2.el b/examples/example-2.el
index 785b012a8d..90b66f59c4 100644
--- a/examples/example-2.el
+++ b/examples/example-2.el
@@ -39,6 +39,9 @@
         ("DONE" . ((svg-tag-make "DONE" :face 'org-done :margin 0)))
 
         ;; Org date (without day name)
+        (,(format "\\(<%s>\\)" date-re) .
+         ((lambda (tag)
+            (svg-tag-make tag :beg 1 :end -1 :margin 0))))
         (,(format "\\(<%s *\\)%s>" date-re time-re) .
          ((lambda (tag)
             (svg-tag-make tag :beg 1 :inverse nil :crop-right t :margin 0))))
@@ -46,6 +49,9 @@
          ((lambda (tag)
             (svg-tag-make tag :end -1 :inverse t :crop-left t :margin 0))))
 
+         (,(format "\\(\\[%s\\]\\)" date-re) .
+          ((lambda (tag)
+             (svg-tag-make tag :beg 1 :end -1 :margin 0 :face 'org-date))))
          (,(format "\\(\\[%s *\\)%s\\]" date-re time-re) .
           ((lambda (tag)
              (svg-tag-make tag :beg 1 :inverse nil :crop-right t :margin 0 
:face 'org-date))))
@@ -58,5 +64,7 @@
 ;; To do:         TODO DONE  
 ;; Tags:          :#MEETING:#NOTE:
 ;; Priorities:    [#A] [#B] [#C]
-;; Active date:   <2021-12-24 14:00>
-;; Inactive date: [2021-12-24 14:00]
+;; Active date:   <2021-12-24>
+;;                <2021-12-24 14:00>
+;; Inactive date: [2021-12-24]
+;;                [2021-12-24 14:00]



reply via email to

[Prev in Thread] Current Thread [Next in Thread]