[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/spacemacs-theme 1f56fb5b82 123/336: Allow customization of
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/spacemacs-theme 1f56fb5b82 123/336: Allow customization of local vars |
Date: |
Fri, 14 Jan 2022 10:59:22 -0500 (EST) |
branch: elpa/spacemacs-theme
commit 1f56fb5b8250a3d4a248eeb71e546ec61a5fb132
Author: nashamri <designernasser@gmail.com>
Commit: nashamri <designernasser@gmail.com>
Allow customization of local vars
---
spacemacs-common.el | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
diff --git a/spacemacs-common.el b/spacemacs-common.el
index 87ec26012a..8adc220d5e 100644
--- a/spacemacs-common.el
+++ b/spacemacs-common.el
@@ -34,6 +34,9 @@
;;; Code:
+(defmacro dyn-let (varlist fn body)
+ (list 'let (append varlist (funcall fn)) body))
+
(defgroup spacemacs-theme nil
"Spacemacs-theme options."
:group 'faces)
@@ -53,8 +56,17 @@
:type 'boolean
:group 'spacemacs-theme)
+(defcustom spacemacs-theme-custom-colors nil
+ "Specify a list of custom colors"
+ :type 'alist
+ :group 'spacemacs-theme)
+
+(defun custom-colors-override ()
+ (mapcar (lambda (x) (list (car x) (cdr x)))
+ spacemacs-theme-custom-colors))
+
(defun create-spacemacs-theme (variant theme-name)
- (let ((class '((class color) (min-colors 89))) ;; ~~
Dark ~~ ~~ Light ~~
+ (dyn-let ((class '((class color) (min-colors 89))) ;; ~~
Dark ~~ ~~ Light ~~
;; GUI
TER GUI TER
;; generic
(active1 (if (eq variant 'dark) (if (display-graphic-p)
"#222226" "#121212") (if (display-graphic-p) "#e7e5eb" "#d7dfff")))
@@ -107,6 +119,8 @@
(yellow-bg (if (eq variant 'dark) (if (display-graphic-p)
"#32322c" "#262626") (if (display-graphic-p) "#f6f1e1" "#ffffff")))
)
+ custom-colors-override
+
(custom-theme-set-faces
theme-name
- [nongnu] elpa/spacemacs-theme 536892b039 021/336: Magit in a good shape now, (continued)
- [nongnu] elpa/spacemacs-theme 536892b039 021/336: Magit in a good shape now, ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme f5b34f9b80 025/336: helm-swoop is done, and little tweak to the dark background, ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme ecb16c9ec8 033/336: Initial support for Info, ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme 8209a33cdd 042/336: Eldoc support, ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme cf1b28b526 041/336: Fixed the comments background contrast in light version., ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme c01158970f 059/336: Renamed spacemacs-theme.el to spacemacs-common.el, ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme adbbe70385 058/336: Making comment background on by default, ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme 93980c3713 063/336: README installation instructions, ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme a652997b12 061/336: Added MELPA badge, ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme d681d3d7f4 062/336: Add Gitter badge, ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme 1f56fb5b82 123/336: Allow customization of local vars,
ELPA Syncer <=
- [nongnu] elpa/spacemacs-theme 3a088f3a11 115/336: Tweak magit diff, ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme 4349c6c89f 119/336: Refactor org code blocks and modeline border, ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme 598b8a4fab 135/336: Merge pull request #33 from xuchunyang/master, ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme 5a33cdf321 149/336: Modify the bold faces to use inherit, ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme afbb2c89ab 141/336: Fix issue with company tooltip, ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme 6b49a05e7a 143/336: Tweak highlight color, ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme 5138eb39f8 152/336: Fix evil search and replace face (#40), ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme 3402e5cbee 145/336: Merge pull request #36 from benswift/patch-1, ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme d30ff5c23e 182/336: add tabbar faces, ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme 754daae0ac 156/336: Support popup and auto-complete, ELPA Syncer, 2022/01/14