[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/gruvbox-theme e4bc0012f6 131/258: Grouped common functiona
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/gruvbox-theme e4bc0012f6 131/258: Grouped common functionality of theme variant in single file |
Date: |
Sat, 1 Jan 2022 01:59:37 -0500 (EST) |
branch: elpa/gruvbox-theme
commit e4bc0012f6cd0e0e8e8587c9ef4df8855f80c658
Author: Martijn Terpstra <bigmartijn@gmail.com>
Commit: Jason Milkins <jasonm23@users.noreply.github.com>
Grouped common functionality of theme variant in single file
---
gruvbox-dark-theme.el | 15 +---------
gruvbox-light-theme.el | 15 +---------
gruvbox-theme.el | 15 +---------
gruvbox.el | 80 ++++++++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 83 insertions(+), 42 deletions(-)
diff --git a/gruvbox-dark-theme.el b/gruvbox-dark-theme.el
index 2ab91bd351..2d3e2f8017 100644
--- a/gruvbox-dark-theme.el
+++ b/gruvbox-dark-theme.el
@@ -47,20 +47,7 @@
(eval-when-compile
(require 'cl-lib))
-(require 'autothemer)
-
-(unless (>= emacs-major-version 24)
- (error "Requires Emacs 24 or later"))
-
-(defgroup gruvbox nil
- "Customizations for gruvbox color theme"
- :group 'faces)
-
-(defcustom gruvbox-contrast 'medium
- "Contrast level for the theme background.
-Valid options are \"soft\", \"medium\" and \"hard\""
- :options '(soft medium hard)
- :group 'gruvbox)
+(require 'gruvbox)
(autothemer-deftheme
gruvbox-dark
diff --git a/gruvbox-light-theme.el b/gruvbox-light-theme.el
index e27862b413..d59f7960e0 100644
--- a/gruvbox-light-theme.el
+++ b/gruvbox-light-theme.el
@@ -47,20 +47,7 @@
(eval-when-compile
(require 'cl-lib))
-(require 'autothemer)
-
-(unless (>= emacs-major-version 24)
- (error "Requires Emacs 24 or later"))
-
-(defgroup gruvbox nil
- "Customizations for gruvbox color theme"
- :group 'faces)
-
-(defcustom gruvbox-contrast 'medium
- "Contrast level for the theme background.
-Valid options are \"soft\", \"medium\" and \"hard\""
- :options '(soft medium hard)
- :group 'gruvbox)
+(require 'gruvbox)
(autothemer-deftheme
gruvbox-light
diff --git a/gruvbox-theme.el b/gruvbox-theme.el
index ca95498ddf..606f2a51a3 100644
--- a/gruvbox-theme.el
+++ b/gruvbox-theme.el
@@ -47,20 +47,7 @@
(eval-when-compile
(require 'cl-lib))
-(require 'autothemer)
-
-(unless (>= emacs-major-version 24)
- (error "Requires Emacs 24 or later"))
-
-(defgroup gruvbox nil
- "Customizations for gruvbox color theme"
- :group 'faces)
-
-(defcustom gruvbox-contrast 'medium
- "Contrast level for the theme background.
-Valid options are \"soft\", \"medium\" and \"hard\""
- :options '(soft medium hard)
- :group 'gruvbox)
+(require 'gruvbox)
(autothemer-deftheme
gruvbox
diff --git a/gruvbox.el b/gruvbox.el
new file mode 100644
index 0000000000..f04f2cdfc2
--- /dev/null
+++ b/gruvbox.el
@@ -0,0 +1,80 @@
+;;; gruvbox-dark-theme.el --- A retro-groove colour theme for Emacs
+
+;; Copyright (c) 2013 Lee Machin
+;; Copyright (c) 2013-2016 Greduan
+;; Copyright (c) 2016-2017 Jason Milkins
+;; Copyright (c) 2017 Martijn Terpstra
+
+;; Author: Jason Milkins <jasonm23@gmail.com>
+;; (current maintainer)
+;;
+;; Author-list: Lee Machin <ljmachin@gmail.com>,
+;; Greduan <me@greduan.com>
+;;
+;; URL: http://github.com/Greduan/emacs-theme-gruvbox
+;; Version: 1.12.0
+
+;; Package-Requires: ((autothemer "0.2"))
+
+;;; Commentary:
+
+;; Using autothemer since 1.00
+
+;; A port of the Gruvbox colorscheme for Vim, built on top of the new built-in
+;; theme support in Emacs 24.
+;;
+;; This theme contains my own modifications and it's a bit opinionated
+;; sometimes, deviating from the original because of it. I try to stay
+;; true to the original as much as possible, however. I only make
+;; changes where I would have made the changes on the original.
+;;
+;; Since there is no direct equivalent in syntax highlighting from Vim to Emacs
+;; some stuff may look different, especially in stuff like JS2-mode, where it
+;; adds stuff that Vim doesn't have, in terms of syntax.
+
+;;; Credits:
+
+;; Pavel Pertsev created the original theme for Vim, on which this port
+;; is based.
+
+;; Lee Machin created the first port of the original theme, which
+;; Greduan developed further adding support for several major modes.
+;;
+;; Jason Milkins (ocodo) has maintained the theme since 2015 and is
+;; working with the community to add further mode support and align
+;; the project more closely with Vim Gruvbox.
+
+;;; Code:
+(eval-when-compile
+ (require 'cl-lib))
+
+(require 'autothemer)
+
+(unless (>= emacs-major-version 24)
+ (error "Requires Emacs 24 or later"))
+
+(defgroup gruvbox nil
+ "Customizations for gruvbox color theme"
+ :group 'faces)
+
+(defcustom gruvbox-contrast 'medium
+ "Contrast level for the theme background.
+Valid options are \"soft\", \"medium\" and \"hard\""
+ :options '(soft medium hard)
+ :group 'gruvbox)
+
+;;;###autoload
+(and load-file-name
+ (boundp 'custom-theme-load-path)
+ (add-to-list 'custom-theme-load-path
+ (file-name-as-directory
+ (file-name-directory load-file-name))))
+
+;; Local Variables:
+;; eval: (when (fboundp 'rainbow-mode) (rainbow-mode +1))
+;; End:
+
+;;; gruvbox-dark-theme.el ends here
+
+
+(provide 'gruvbox)
- [nongnu] elpa/gruvbox-theme f4035b67ab 073/258: Merge pull request #27 from hoyon/master, (continued)
- [nongnu] elpa/gruvbox-theme f4035b67ab 073/258: Merge pull request #27 from hoyon/master, ELPA Syncer, 2022/01/01
- [nongnu] elpa/gruvbox-theme 062071ea1b 076/258: Added full popup support, ELPA Syncer, 2022/01/01
- [nongnu] elpa/gruvbox-theme 4148d1ff4b 082/258: Match modeline color, ELPA Syncer, 2022/01/01
- [nongnu] elpa/gruvbox-theme 8776c27ae1 084/258: Merge pull request #35 from Dominionized/patch-1, ELPA Syncer, 2022/01/01
- [nongnu] elpa/gruvbox-theme 47d34f13b3 085/258: Add preliminary support for setting the contrast. (#40), ELPA Syncer, 2022/01/01
- [nongnu] elpa/gruvbox-theme 4008f08cd5 088/258: eval cl or cl-lib when compiling (#42), ELPA Syncer, 2022/01/01
- [nongnu] elpa/gruvbox-theme 01a97cf538 102/258: Remove redundant defun, ELPA Syncer, 2022/01/01
- [nongnu] elpa/gruvbox-theme e57f494fd9 114/258: 1.12.0, ELPA Syncer, 2022/01/01
- [nongnu] elpa/gruvbox-theme 1be12068a8 115/258: add click handler, ELPA Syncer, 2022/01/01
- [nongnu] elpa/gruvbox-theme 4d39894856 110/258: Fix palette in preview, ELPA Syncer, 2022/01/01
- [nongnu] elpa/gruvbox-theme e4bc0012f6 131/258: Grouped common functionality of theme variant in single file,
ELPA Syncer <=
- [nongnu] elpa/gruvbox-theme bb351731fc 135/258: Minor formatting cleanup, ELPA Syncer, 2022/01/01
- [nongnu] elpa/gruvbox-theme 35b1582284 133/258: Updated copyright notice, ELPA Syncer, 2022/01/01
- [nongnu] elpa/gruvbox-theme 0207d5b30d 139/258: Deleted duplicate face definitions, ELPA Syncer, 2022/01/01
- [nongnu] elpa/gruvbox-theme 0f0f472c4d 142/258: Move images to subfolder, ELPA Syncer, 2022/01/01
- [nongnu] elpa/gruvbox-theme 21c1673622 155/258: Added support for sh-quoted-exec and sh-heredoc, ELPA Syncer, 2022/01/01
- [nongnu] elpa/gruvbox-theme 80a26e2f5a 165/258: added window-divider face, ELPA Syncer, 2022/01/01
- [nongnu] elpa/gruvbox-theme ebd674547d 164/258: Increased contrast between active and inactive mode line face, ELPA Syncer, 2022/01/01
- [nongnu] elpa/gruvbox-theme 4588616cea 166/258: Fix a function name typo, ELPA Syncer, 2022/01/01
- [nongnu] elpa/gruvbox-theme 06b6ceda7c 186/258: Increased visibility of show-paren-match face on highlighted lines, ELPA Syncer, 2022/01/01
- [nongnu] elpa/gruvbox-theme fd06360f98 187/258: Version bump from 1.22.2 to 1.22.3, ELPA Syncer, 2022/01/01