[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/svg-tag-mode 78a343f0f3 34/63: Cleanup whitespace
From: |
ELPA Syncer |
Subject: |
[elpa] externals/svg-tag-mode 78a343f0f3 34/63: Cleanup whitespace |
Date: |
Mon, 27 Dec 2021 15:57:59 -0500 (EST) |
branch: externals/svg-tag-mode
commit 78a343f0f3c08b6fd17db0a43591a6ae2aa383a0
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
Cleanup whitespace
---
svg-tag-mode.el | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)
diff --git a/svg-tag-mode.el b/svg-tag-mode.el
index 0a610b904e..7979a83c55 100644
--- a/svg-tag-mode.el
+++ b/svg-tag-mode.el
@@ -45,7 +45,9 @@
;; (setq svg-tag-tags '(("([0-9])" svg-tag-round)))
;; (svg-tag-mode)
;;
+
;;; Code:
+
(require 'svg)
(eval-when-compile (require 'subr-x))
@@ -137,9 +139,9 @@ INNER-PADDING, OUTER-PADDING and RADIUS controls the visual
aspect of the box."
(line-width (or (plist-get (face-attribute face :box) :line-width)
svg-tag-default-line-width))
(family (face-attribute face :family))
-;; (weight (face-attribute face :weight))
+ ;; (weight (face-attribute face :weight))
(weight (cdr (assoc (face-attribute face :weight)
- svg-tag--font-weights)))
+ svg-tag--font-weights)))
(size (/ (face-attribute face :height) 10))
(tag-char-width (window-font-width nil face))
@@ -159,15 +161,18 @@ INNER-PADDING, OUTER-PADDING and RADIUS controls the
visual aspect of the box."
(tag-x (/ (- svg-width tag-width) 2))
(text-x (+ tag-x (/ (- tag-width (* (length text) tag-char-width))
2)))
(text-y (- tag-char-height (- txt-char-height tag-char-height)))
-
+
(radius (or radius svg-tag-default-radius))
(svg (svg-create svg-width svg-height)))
-
+
(svg-rectangle svg tag-x 0 tag-width tag-height
:fill stroke
:rx radius)
- (svg-rectangle svg (+ tag-x (/ line-width 2.0)) (/ line-width 2.0)
- (- tag-width line-width) (- tag-height line-width)
+ (svg-rectangle svg
+ (+ tag-x (/ line-width 2.0))
+ (/ line-width 2.0)
+ (- tag-width line-width)
+ (- tag-height line-width)
:fill background
:rx (- radius (/ line-width 2.0)))
(svg-text svg text
- [elpa] externals/svg-tag-mode 0944bb3bce 14/63: Simplified tag setup and added custom variable for tags, (continued)
- [elpa] externals/svg-tag-mode 0944bb3bce 14/63: Simplified tag setup and added custom variable for tags, ELPA Syncer, 2021/12/27
- [elpa] externals/svg-tag-mode db4d223352 18/63: Fixed documentation, ELPA Syncer, 2021/12/27
- [elpa] externals/svg-tag-mode 9649055e90 20/63: Trying to fix header, ELPA Syncer, 2021/12/27
- [elpa] externals/svg-tag-mode cec780a16f 21/63: Added version, ELPA Syncer, 2021/12/27
- [elpa] externals/svg-tag-mode 4fdc7ffbb3 23/63: Fixed font weights, ELPA Syncer, 2021/12/27
- [elpa] externals/svg-tag-mode 609ed7cc32 24/63: Removed free variable, ELPA Syncer, 2021/12/27
- [elpa] externals/svg-tag-mode 0125ceca29 22/63: Fix README, ELPA Syncer, 2021/12/27
- [elpa] externals/svg-tag-mode a9e8d9e705 27/63: Fixes followign review at https://github.com/melpa/melpa/pull/7217, ELPA Syncer, 2021/12/27
- [elpa] externals/svg-tag-mode 40d7820143 28/63: Moved examples into a directory, ELPA Syncer, 2021/12/27
- [elpa] externals/svg-tag-mode c0492f9046 30/63: Fixed links, ELPA Syncer, 2021/12/27
- [elpa] externals/svg-tag-mode 78a343f0f3 34/63: Cleanup whitespace,
ELPA Syncer <=
- [elpa] externals/svg-tag-mode 29ca63cdbb 36/63: Rewrote the mode using svg-lib, ELPA Syncer, 2021/12/27
- [elpa] externals/svg-tag-mode f6adc4b772 39/63: Make sure to remove space from tag., ELPA Syncer, 2021/12/27
- [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