From d2129679340e4d735af518b71ea9b539a8b61a74 Mon Sep 17 00:00:00 2001 From: Liam Hupfer Date: Fri, 18 Jul 2025 23:28:22 -0500 Subject: [PATCH] gnu: Add emacs-colorful-mode. * gnu/packages/emacs-xyz.scm (emacs-colorful-mode): New variable. Change-Id: I41bedcb724883f2e33ecdd06efaad886c914f373 Signed-off-by: jgart --- gnu/packages/emacs-xyz.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 77ffc25dfee8ca0ce1c43c47e999644c17169a8a..86ab5354f615819bc105feeaf83217143533b7ae 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -17694,6 +17694,34 @@ of its name.") names, e.g., @samp{#0000ff} is displayed in white with a blue background.") (license license:gpl3+))) +(define-public emacs-colorful-mode + (package + (name "emacs-colorful-mode") + (version "1.2.4") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/DevelopmentCool2449/colorful-mode") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1cm5bpw2x15h6pf5vxcp2f7jf1rkpnq7qq8idlv9n9p5nnxwik1d")))) + (build-system emacs-build-system) + ;; No automated tests. The test directory contains sample files for + ;; visual inspection. + (arguments (list #:tests? #f)) + (propagated-inputs (list emacs-compat)) + (home-page "https://github.com/DevelopmentCool2449/colorful-mode") + (synopsis "Highlight color strings in buffers") + (description + "@code{colorful-mode} is a minor mode to highlight any color +format, such as hex codes or HTML color names, in buffers in real time. It is +inspired by @code{rainbow-mode} but uses overlays instead of text properties +to support a different feature set. It also supports conversion of color +strings between formats.") + (license license:gpl3+))) + (define-public emacs-indent-bars (package (name "emacs-indent-bars")