[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/svg-tag-mode 861c68af89 40/63: Updated example 1 to new
From: |
ELPA Syncer |
Subject: |
[elpa] externals/svg-tag-mode 861c68af89 40/63: Updated example 1 to new tags format. |
Date: |
Mon, 27 Dec 2021 15:57:59 -0500 (EST) |
branch: externals/svg-tag-mode
commit 861c68af89351ee87fc2085fca3c5151d26db17f
Author: Nicolas P. Rougier <Nicolas.Rougier@inria.fr>
Commit: Nicolas P. Rougier <Nicolas.Rougier@inria.fr>
Updated example 1 to new tags format.
---
examples/example-1.el | 52 ++++++++++-----------------------------------------
1 file changed, 10 insertions(+), 42 deletions(-)
diff --git a/examples/example-1.el b/examples/example-1.el
index 7942c3ea4a..97492c2ad8 100644
--- a/examples/example-1.el
+++ b/examples/example-1.el
@@ -15,48 +15,16 @@
;; see <http://www.gnu.org/licenses/>.
(require 'svg-tag-mode)
-(defface svg-tag-note-face
- '((t :foreground "black" :background "white" :box "black"
- :family "Roboto Mono" :weight light :height 120))
- "Face for note tag" :group nil)
-
-(defface svg-tag-keyboard-face
- '((t :foreground "#333333" :background "#f9f9f9" :box "#333333"
- :family "Roboto Mono" :weight light :height 120))
- "Face for keyboard bindings tag" :group nil)
-
-(defface svg-tag-org-face
- '((t :foreground "#333333" :background "#fffff0" :box "#333333"
- :family "Roboto Mono" :weight light :height 120))
- "Face for keyboard bindings tag" :group nil)
-
-(setq svg-tag-todo
- (svg-tag-make "TODO" nil 1 1 2))
-
-(setq svg-tag-note
- (svg-tag-make "NOTE" 'svg-tag-note-face 2 0 2))
-
-(defun svg-tag-round (text)
- (svg-tag-make (substring text 1 -1) 'svg-tag-note-face 1 1 12))
-
-(defun svg-tag-quasi-round (text)
- (svg-tag-make (substring text 1 -1) 'svg-tag-note-face 1 1 8))
-
-(defun svg-tag-keyboard (text)
- (svg-tag-make (substring text 1 -1) 'svg-tag-keyboard-face 1 1 2))
-
-(defun svg-tag-org (text)
- (svg-tag-make (substring text 1 -1) 'svg-tag-org-face 1 1 2))
-
(setq svg-tag-tags
- '(("@[0-9a-zA-Z]+:" . svg-tag-org)
- (":TODO:" . svg-tag-todo)
- (":NOTE:" . svg-tag-note)
- ("\([0-9a-zA-Z]\)" . svg-tag-round)
- ("\([0-9a-zA-Z][0-9a-zA-Z]\)" . svg-tag-quasi-round)
- ("|[0-9a-zA-Z- ⇥></%⌘^→←↑↓]+?|" . svg-tag-keyboard)))
-
-(svg-tag-mode 1)
+ '((":TODO:" . ((svg-tag-make "TODO" :face 'org-tag :inverse t :margin
0)))
+ (":NOTE:" . ((svg-tag-make "NOTE" :margin 0)))
+ ("\([0-9a-zA-Z]\)" . ((lambda (tag)
+ (svg-tag-make tag :beg 1 :end -1 :radius 12))))
+ ("\([0-9a-zA-Z][0-9a-zA-Z]\)" . ((lambda (tag)
+ (svg-tag-make tag :beg 1 :end -1
:radius 8))))
+ ("|[0-9a-zA-Z- ]+?|" . ((lambda (tag)
+ (svg-tag-make tag :beg 1 :end -1))))))
+(svg-tag-mode t)
;; :NOTE: SVG tag is a minor mode that displays a rounded box with outer
;; and inner padding and a controllable box radius. The resulting SVG is
@@ -75,6 +43,6 @@
;; Browse directory ......|C-x||d| Quit ............... |C-x||C-c|
;;
;; ------------------------------------------------------------------------
-;; (1)(2)(3)(4)(5)(Z)(W)(12)(99)
+;; (1)(2)(3)(4)(5)(Z)(W)(12)(99) (A)(B)(C)
;; ------------------------------------------------------------------------
- [elpa] externals/svg-tag-mode a5098267c9 41/63: Updated example 2 to new tags format., (continued)
- [elpa] externals/svg-tag-mode a5098267c9 41/63: Updated example 2 to new tags format., ELPA Syncer, 2021/12/27
- [elpa] externals/svg-tag-mode e9a6256dee 44/63: Added org-mode screenshot, ELPA Syncer, 2021/12/27
- [elpa] externals/svg-tag-mode 525901723f 47/63: Fixed requirements., ELPA Syncer, 2021/12/27
- [elpa] externals/svg-tag-mode 8d9dd283fb 45/63: Updated screenshot, ELPA Syncer, 2021/12/27
- [elpa] externals/svg-tag-mode aca351185b 52/63: Fixed documentation., ELPA Syncer, 2021/12/27
- [elpa] externals/svg-tag-mode 558ac3d3bd 54/63: Added edit mode (tag is hidden) when pointer is over a tag., ELPA Syncer, 2021/12/27
- [elpa] externals/svg-tag-mode 72068052ff 19/63: Fixed default height, ELPA Syncer, 2021/12/27
- [elpa] externals/svg-tag-mode 9ddf0e4f13 38/63: Rename screenshot, ELPA Syncer, 2021/12/27
- [elpa] externals/svg-tag-mode b865793671 53/63: Updated copyright notices., ELPA Syncer, 2021/12/27
- [elpa] externals/svg-tag-mode 95b5404997 35/63: Merge pull request #13 from tarsiiformes/cleanup, ELPA Syncer, 2021/12/27
- [elpa] externals/svg-tag-mode 861c68af89 40/63: Updated example 1 to new tags format.,
ELPA Syncer <=
- [elpa] externals/svg-tag-mode ee16277655 42/63: Added examples from documentation, ELPA Syncer, 2021/12/27
- [elpa] externals/svg-tag-mode 8533c6c174 50/63: Added progress bar example., ELPA Syncer, 2021/12/27
- [elpa] externals/svg-tag-mode d9a803a92e 49/63: Added date without time format example., ELPA Syncer, 2021/12/27
- [elpa] externals/svg-tag-mode 3e49ddcee2 57/63: Cancel tag editing in read-only or view mode., ELPA Syncer, 2021/12/27
- [elpa] externals/svg-tag-mode 7266de9f9c 61/63: Simplified advice on org fontify blocks., ELPA Syncer, 2021/12/27
- [elpa] externals/svg-tag-mode 1d0d91bb00 46/63: Fixed layout, ELPA Syncer, 2021/12/27
- [elpa] externals/svg-tag-mode 02d60e0a86 55/63: Fixed cursor selection., ELPA Syncer, 2021/12/27
- [elpa] externals/svg-tag-mode b5a00a5746 56/63: Bumped version number and fixed some documentation., ELPA Syncer, 2021/12/27
- [elpa] externals/svg-tag-mode 85aed73bc6 58/63: Added custom option to let user decide on action at point., ELPA Syncer, 2021/12/27
- [elpa] externals/svg-tag-mode e2481ae15a 63/63: Modified example to highlight real org tags., ELPA Syncer, 2021/12/27