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

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

[elpa] externals/rainbow-mode c9c1728 16/26: Enforce use of spaces for i


From: Stefan Monnier
Subject: [elpa] externals/rainbow-mode c9c1728 16/26: Enforce use of spaces for indentation
Date: Tue, 1 Dec 2020 16:53:20 -0500 (EST)

branch: externals/rainbow-mode
commit c9c1728e423067240b4f4b4d8c6a90e7a60ea309
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Julien Danjou <julien@danjou.info>

    Enforce use of spaces for indentation
    
    Also untabify some code added by a contributor who, unlike you,
    has not globally set `indent-tabs-mode' to nil.
---
 rainbow-mode.el | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/rainbow-mode.el b/rainbow-mode.el
index ddd9a94..fbed414 100644
--- a/rainbow-mode.el
+++ b/rainbow-mode.el
@@ -1033,7 +1033,7 @@ If the percentage value is above 100, it's converted to 
100."
         (l (/ (string-to-number (match-string-no-properties 3)) 100.0)))
     (rainbow-colorize-match
      (multiple-value-bind (r g b)
-        (color-hsl-to-rgb h s l)
+         (color-hsl-to-rgb h s l)
        (format "#%02X%02X%02X" (* r 255) (* g 255) (* b 255))))))
 
 (defun rainbow-colorize-rgb ()
@@ -1096,9 +1096,9 @@ Return a value between 0 and 1."
   "Calculate the luminance of a color string (e.g. \"#ffaa00\", \"blue\").
 Return a value between 0 and 1."
   (let* ((values (x-color-values color))
-        (r (/ (car values) 256.0))
+         (r (/ (car values) 256.0))
          (g (/ (cadr values) 256.0))
-        (b (/ (caddr values) 256.0)))
+         (b (/ (caddr values) 256.0)))
     (rainbow-color-luminance r g b)))
 
 (defun rainbow-turn-on ()
@@ -1174,4 +1174,7 @@ This will fontify with colors the string like \"#aabbcc\" 
or \"blue\"."
 
 (provide 'rainbow-mode)
 
+;; Local Variables:
+;; indent-tabs-mode: nil
+;; End:
 ;;; rainbow-mode.el ends here



reply via email to

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