~ushin/ushin-shapes.el

08af6f74576c8a1e264a1de90afcd38f7675eb33 — Jonas Bernoulli 5 months ago 7b70c44
Fix: (ushin-shapes--build-tag) Give value the expected form
1 files changed, 11 insertions(+), 10 deletions(-)

M ushin-shapes.el
M ushin-shapes.el => ushin-shapes.el +11 -10
@@ 57,16 57,17 @@

(defun ushin-shapes--build-tag (shape)
  "Build `svg-tag-mode' tag from SHAPE."
  `(,(concat ":\\(" shape "\\):") .
    ((lambda (tag)
       (svg-lib-icon ,shape
                     `( :background "transparent"
                        :foreground ,ushin-shapes-foreground-color
                        :padding 0
                        :stroke 0
                        :height 1
                        :scale 0.8
                        :collection "ushin"))))))
  `(,(format ":\\(%s\\):" shape)
    (lambda (arg)
      (svg-lib-icon ,shape nil
                    :background "transparent"
                    :foreground ,ushin-shapes-foreground-color
                    :padding 0
                    :stroke 0
                    :height 1
                    :scale 0.8
                    :collection "ushin"))
    nil nil))

(defun ushin-shapes-tags ()
  "Return list of ushin `svg-tag-mode' tags."