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

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

[elpa] externals/svg-tag-mode 63d8710d1a 04/63: Better example syntax


From: ELPA Syncer
Subject: [elpa] externals/svg-tag-mode 63d8710d1a 04/63: Better example syntax
Date: Mon, 27 Dec 2021 15:57:55 -0500 (EST)

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

    Better example syntax
---
 README.org      |   9 +++++++--
 example.el      |  24 ++++++++++++------------
 screenshot.png  | Bin 415543 -> 0 bytes
 svg-tag-off.png | Bin 0 -> 289428 bytes
 svg-tag-on.png  | Bin 0 -> 311424 bytes
 5 files changed, 19 insertions(+), 14 deletions(-)

diff --git a/README.org b/README.org
index 33c8df51cf..5f3297a27a 100644
--- a/README.org
+++ b/README.org
@@ -13,6 +13,11 @@ box labels. See [[file:/example.el][example.el]] for example 
usage.
 
 *** Demonstration 
 
-Open [[file:/example.el][example.el]] and evaluate buffer
+Open [[file:/example.el][example.el]] and evaluate buffer (*M-x 
evaluate-buffer*)
+
+*SVG tag mode on*
+[[./svg-tag-on.png]]
+
+*SVG tag mode off*
+[[./svg-tag-off.png]]
 
-[[./screenshot.png]]
diff --git a/example.el b/example.el
index 51dcf098d3..4df1ebed81 100644
--- a/example.el
+++ b/example.el
@@ -13,7 +13,6 @@
 ;;
 ;; For a full copy of the GNU General Public License
 ;; see <http://www.gnu.org/licenses/>.
-
 (require 'svg-tag-mode)
 
 (defface svg-tag-note-face
@@ -37,35 +36,36 @@
 (setq svg-tags
       '(("\\(:TODO:\\)" 1 `(face nil display ,svg-tag-todo))
         ("\\(:NOTE:\\)" 1 `(face nil display ,svg-tag-note))
-        ("\\(\@[0-9a-zA-Z]\@\\)" 1
+        ("\\(\([0-9a-zA-Z]\)\\)" 1
          `(face nil display ,(svg-tag-round (match-string 0))))
-        ("\\(\@[0-9a-zA-Z][0-9a-zA-Z]\@\\)" 1
+        ("\\(\([0-9a-zA-Z][0-9a-zA-Z]\)\\)" 1
          `(face nil display ,(svg-tag-quasi-round (match-string 0))))
-        ("\\(=[0-9a-zA-Z- ]+?=\\)" 1
+        ("\\(|[0-9a-zA-Z- ]+?|\\)" 1
          `(face nil display ,(svg-tag-keyboard (match-string 0))))))
 
 (svg-tag-mode 1)
 
 ;; A tag function using SVG to display a rounded box with outer and inner
 ;; padding and a controllable box radius. The resulting SVG is perfectly
-;; aligned with regular text such that a =TAG= can be inserted and edited
+;; aligned with regular text such that a |TAG| can be inserted and edited
 ;; anywhere in the text thanks to font-lock and the display property.
 
 ;;|:TODO:| Make a minor mode
 ;;|:NOTE:| Don't know how to do it, help needed…
 ;;|______| Perfect alignment with regular text
 ;;
-;;  Save ................. =C-x=+=C-s=  Help ............... =C-h=
-;;  Save as .............. =C-x=+=C-w=  Cancel ............. =C-g=
-;;  Open a new file ...... =C-x=+=C-f=  Undo ............... =C-z=
-;;  Open recent .......... =C-x=+=C-r=  Close buffer ....... =C-x=+=k=
-;;  Browse directory ......=C-x=+=d=    Quit ............... =C-x=+=C-c=
+;;  Save ................. |C-x|+|C-s|  Help ............... |C-h|
+;;  Save as .............. |C-x|+|C-w|  Cancel ............. |C-g|
+;;  Open a new file ...... |C-x|+|C-f|  Undo ............... |C-z|
+;;  Open recent .......... |C-x|+|C-r|  Close buffer ....... |C-x|+|k|
+;;  Browse directory ......|C-x|+|d|    Quit ............... |C-x|+|C-c|
 
 ;; ------------------------------------------------------------------------
 ;; :NOTE: Sections can be folded or unfolded. If you think a section has
 ;;        disappeared, it's probably because it is folded. To unfold it,
-;;        place the cursor on the section title and press the =tab= key.
+;;        place the cursor on the section title and press the |tab| key.
 ;; ------------------------------------------------------------------------
-;; @1@@2@@3@@4@@5@@Z@@W@@12@@99@
+;; (1)(2)(3)(4)(5)(Z)(W)(12)(99)
 ;; ------------------------------------------------------------------------
 
+
diff --git a/screenshot.png b/screenshot.png
deleted file mode 100644
index f5fe148da6..0000000000
Binary files a/screenshot.png and /dev/null differ
diff --git a/svg-tag-off.png b/svg-tag-off.png
new file mode 100644
index 0000000000..4a907b128d
Binary files /dev/null and b/svg-tag-off.png differ
diff --git a/svg-tag-on.png b/svg-tag-on.png
new file mode 100644
index 0000000000..a0fc3464e3
Binary files /dev/null and b/svg-tag-on.png differ



reply via email to

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