guix-commits
[Top][All Lists]
Advanced

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

02/02: gnu: Add emacs-auto-dark.


From: guix-commits
Subject: 02/02: gnu: Add emacs-auto-dark.
Date: Wed, 20 Nov 2024 01:28:32 -0500 (EST)

apteryx pushed a commit to branch master
in repository guix.

commit 129641fcd2956d6c571b792efe703da545f18c0a
Author: User <user@domain>
AuthorDate: Wed Nov 20 10:30:57 2024 +0900

    gnu: Add emacs-auto-dark.
    
    * gnu/packages/emacs-xyz.scm (emacs-auto-dark): New variable.
    
    Change-Id: Ib7c56204b1cc053512eccdd17a38942022a21f08
---
 gnu/packages/emacs-xyz.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index daac69e6c3..6e8e9f5551 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -18487,6 +18487,36 @@ a visual interface, reduce overhead of completion by 
using statistic method,
 extensibility.")
     (license license:gpl3+)))
 
+(define-public emacs-auto-dark
+  (package
+    (name "emacs-auto-dark")
+    (version "0.13.2")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/LionyxML/auto-dark-emacs";)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "0cp4hcac2kya3m8cc8xfrv01cg06vi70zgp4m6q39cw2i9dnlnch"))))
+    (build-system emacs-build-system)
+    (home-page "https://github.com/LionyxML/auto-dark-emacs";)
+    (synopsis "Dark/light automatic Emacs theme switcher")
+    (description "This package provides the @code{auto-dark-mode} minor mode,
+which enables automatic switching between two user-defined (customizable)
+themes.  This transition occurs seamlessly in response to dark mode being
+enabled or disabled in the desktop preferences (such as in GNOME).  It uses
+DBus to query the system configured value.  To enable it, put the following
+snippet to your Emacs configuration file:
+@lisp
+(require auto-dark)
+(auto-dark-mode t)
+@end lisp
+To customize the themes used, visit @samp{M-x customize-group auto-dark}.")
+    (license license:gpl2+)))
+
 (define-public emacs-autocrypt
   (let ((commit "dc0223f11daf526621fda206b38bf06c29759c94")) ;version bump
     (package



reply via email to

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