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

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

[nongnu] elpa/gruvbox-theme 05d8e2e708 002/258: Added the theme that alr


From: ELPA Syncer
Subject: [nongnu] elpa/gruvbox-theme 05d8e2e708 002/258: Added the theme that already existed
Date: Sat, 1 Jan 2022 01:59:23 -0500 (EST)

branch: elpa/gruvbox-theme
commit 05d8e2e708caaa6c0246d5fa87aaa5024d2c027f
Author: Greduan <eduanlavaque@gmail.com>
Commit: Greduan <eduanlavaque@gmail.com>

    Added the theme that already existed
    
    Thanks @leemachin! I shall start improving this. :)
---
 README.md              | 39 ++++++++++++++++++++--
 LICENSE => gpl-3.0.txt |  0
 gruvbox-theme.el       | 91 ++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 128 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index 3cfa25a1de..02ce9a4863 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,39 @@
-emacs-theme-gruvbox
-===================
+# Gruvbox theme for Emacs
 
 A theme for Emacs based on the Gruvbox theme for Vim
+
+
+## Usage
+
+FIXME
+
+
+## Known bugs
+
+FIXME
+
+
+## To-do
+
+FIXME
+
+
+## License
+
+```
+DocPad App is an experimental app to control DocPad through a GUI.
+Copyright (C) 2013  Eduán Lávaque
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+```
diff --git a/LICENSE b/gpl-3.0.txt
similarity index 100%
rename from LICENSE
rename to gpl-3.0.txt
diff --git a/gruvbox-theme.el b/gruvbox-theme.el
new file mode 100644
index 0000000000..86b83c7bf8
--- /dev/null
+++ b/gruvbox-theme.el
@@ -0,0 +1,91 @@
+;;; gruvbox-theme.el --- A retro-groove colour theme for Emacs
+
+;; Copyright (C)  2013 Eduán Lávaque
+
+;; Author: Eduán Lávaque <eduanlavaque@gmail.com>
+;; URL: http://github.com/Greduan/emacs-theme-gruvbox
+;; Version: 0.1
+
+;; This program is free software; you can redistribute it and/or modify
+;; it under the terms of the GNU General Public License as published by
+;; the Free Software Foundation, either version 3 of the License, or
+;; (at your option) any later version.
+
+;; This program is distributed in the hope that it will be useful,
+;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+;; GNU General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+;;; Commentary:
+
+;; A port of the Gruvbox colorscheme for Vim, built on top of the new
+;; built-in theme support in Emacs 24.
+
+;;; Credits:
+
+;; Pavel Pertsev created the original theme for Vim on which this port
+;; is based.
+;; Lee Machin who created first port of the original theme, off of which
+;; I'm working on to make it better.
+
+;;; Code:
+
+(unless (>= 24 emacs-major-version)
+  (error "requires Emacs 24 or later."))
+
+(deftheme gruvbox
+  "A retro-groove colour theme")
+
+(let ((gruvbox-background "#282828")
+      (gruvbox-foreground "#ebdbb2")
+      (gruvbox-dark-1     "#3c3836")
+      (gruvbox-dark-2     "#504945")
+      (gruvbox-dark-3     "#665c54")
+      (gruvbox-dark-4     "#7c6f64")
+      (gruvbox-light-1    "#fdf4c1")
+      (gruvbox-light-2    "#d5c4a1")
+      (gruvbox-light-3    "#bdae93")
+      (gruvbox-light-4    "#a89984")
+      (gruvbox-red        "#fb4934")
+      (gruvbox-orange     "#fe8019")
+      (gruvbox-yellow     "#fabd2f")
+      (gruvbox-green      "#b8bb26")
+      (gruvbox-aqua       "#8ec07c")
+      (gruvbox-blue       "#83a598")
+      (gruvbox-purple     "#d3869b"))
+
+(custom-theme-set-faces
+  'gruvbox
+
+  `(default ((t (:background ,gruvbox-background :foreground 
,gruvbox-foreground))))
+  `(cursor  ((t (:background ,gruvbox-light-2))))
+  `(hl-line ((t (:background ,gruvbox-dark-3))))
+  `(mode-line-inactive ((t (:box nil :foreground ,gruvbox-background 
:background ,gruvbox-dark-4))))
+  `(mode-line ((t (:box nil :foreground ,gruvbox-light-1 :background 
,gruvbox-dark-4))))
+  `(fringe ((t (:background ,gruvbox-background))))
+  `(linum ((t (:background ,gruvbox-background))))
+  `(region ((t (:background ,gruvbox-dark-1))))
+  `(minibuffer-prompt ((default (:foreground ,gruvbox-green :background 
,gruvbox-background :bold t))))
+  `(ag-hit-face ((t (:foreground ,gruvbox-green))))
+  `(ag-match-face ((t (:foreground ,gruvbox-red))))
+
+  `(font-lock-builtin-face ((t (:foreground ,gruvbox-orange))))
+  `(font-lock-constant-face ((t (:foreground ,gruvbox-purple))))
+  `(font-lock-comment-face ((t (:foreground ,gruvbox-dark-4))))
+  `(font-lock-function-name-face ((t (:foreground ,gruvbox-green))))
+  `(font-lock-keyword-face ((t (:foreground ,gruvbox-red))))
+  `(font-lock-string-face ((t (:foreground ,gruvbox-green))))
+  `(font-lock-variable-name-face ((t (:foreground ,gruvbox-blue))))
+  `(font-lock-type-face ((t (:foreground ,gruvbox-purple))))
+  `(font-lock-warning-face ((t (:foreground ,gruvbox-red :bold t))))))
+
+(when load-file-name
+  (add-to-list 'custom-theme-load-path
+               (file-name-as-directory (file-name-directory load-file-name)))
+  (when (not window-system)
+    (custom-set-faces '(default ((t (:background "nil")))))))
+
+(provide-theme 'gruvbox)



reply via email to

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