[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
- [elpa] branch externals/svg-tag-mode created (now e2481ae15a), ELPA Syncer, 2021/12/27
- [elpa] externals/svg-tag-mode 81cb79335c 02/63: Added installation instructions, ELPA Syncer, 2021/12/27
- [elpa] externals/svg-tag-mode fe508895e1 08/63: Removed spurious backquote, ELPA Syncer, 2021/12/27
- [elpa] externals/svg-tag-mode ffc6631dd2 16/63: Cosmetic, ELPA Syncer, 2021/12/27
- [elpa] externals/svg-tag-mode 7a4e0df952 17/63: Added org-mode example, ELPA Syncer, 2021/12/27
- [elpa] externals/svg-tag-mode 2bcf213527 26/63: Added global mode, ELPA Syncer, 2021/12/27
- [elpa] externals/svg-tag-mode 3c38d60cb7 06/63: Merge pull request #3 from tsuu32/fix/load-subr-x, ELPA Syncer, 2021/12/27
- [elpa] externals/svg-tag-mode d62ae5bc4d 03/63: Typo, ELPA Syncer, 2021/12/27
- [elpa] externals/svg-tag-mode 664fbec919 01/63: First version, ELPA Syncer, 2021/12/27
- [elpa] externals/svg-tag-mode 63d8710d1a 04/63: Better example syntax,
ELPA Syncer <=
- [elpa] externals/svg-tag-mode 4fe6ce8681 13/63: Typo, ELPA Syncer, 2021/12/27
- [elpa] externals/svg-tag-mode 4894900f52 10/63: Merge pull request #6 from a13/main, ELPA Syncer, 2021/12/27
- [elpa] externals/svg-tag-mode fc57d2d4bb 11/63: Normalized names, ELPA Syncer, 2021/12/27
- [elpa] externals/svg-tag-mode 2dc379039a 15/63: Updated example, ELPA Syncer, 2021/12/27
- [elpa] externals/svg-tag-mode 87489d2845 31/63: Fixed warning (see https://github.com/melpa/melpa/pull/7217#issuecomment-735307276), ELPA Syncer, 2021/12/27
- [elpa] externals/svg-tag-mode a34a2e1128 32/63: Added scale of 1 just in case, ELPA Syncer, 2021/12/27
- [elpa] externals/svg-tag-mode 2c4a3a02a1 33/63: Enforce use of spaces for indentation, ELPA Syncer, 2021/12/27
- [elpa] externals/svg-tag-mode 83fc912461 51/63: Updated screenshots, ELPA Syncer, 2021/12/27
- [elpa] externals/svg-tag-mode 837dfbdd06 48/63: Fixed documentation., ELPA Syncer, 2021/12/27
- [elpa] externals/svg-tag-mode ede0edb5c3 25/63: Lint correction, ELPA Syncer, 2021/12/27