[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/moe-theme 2634eb6d92 319/352: customizable font-lock color
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/moe-theme 2634eb6d92 319/352: customizable font-lock color |
Date: |
Fri, 7 Jan 2022 04:00:01 -0500 (EST) |
branch: elpa/moe-theme
commit 2634eb6d92eab75cdb6325400bb51514b7bfc3d7
Author: onohiroko <azazabc123@gmail.com>
Commit: onohiroko <azazabc123@gmail.com>
customizable font-lock color
---
moe-dark-theme.el | 70 +++++++++++++++++++++++++++++++-----------------------
moe-light-theme.el | 37 +++++++++++++----------------
2 files changed, 57 insertions(+), 50 deletions(-)
diff --git a/moe-dark-theme.el b/moe-dark-theme.el
index 94186c02cd..42e0d906d1 100644
--- a/moe-dark-theme.el
+++ b/moe-dark-theme.el
@@ -32,17 +32,49 @@ Moe, moe, kyun!")
(orange-0 "#ffaf87") (orange-00 "#ffd787") (orange-000 "#ffd7af")
(linum-dark "#87875f") (linum-light "#d7d7af")
)
-
+ ;; Customize color
+ (defvar moe-dark-bg black-5)
+ (defvar moe-dark-fg white-1)
+ (defvar moe-dark-builtin purple-1)
+ (defvar moe-dark-comment-delimiter black-2-5)
+ (defvar moe-dark-comment black-2-5)
+ (defvar moe-dark-constant blue-1)
+ (defvar moe-dark-doc red-0)
+ (defvar moe-dark-doc-string yellow-3)
+ (defvar moe-dark-function-name yellow-2)
+ (defvar moe-dark-keyword green-2)
+ (defvar moe-dark-negation-char red-0)
+ (defvar moe-dark-preprocessor purple-1)
+ (defvar moe-dark-regexp-grouping-backslash yellow-1)
+ (defvar moe-dark-regexp-grouping-construct purple-1)
+ (defvar moe-dark-string magenta-2)
+ (defvar moe-dark-type cyan-3)
+ (defvar moe-dark-variable-name orange-2)
+ (defvar moe-dark-warning red-2)
(custom-theme-set-faces
'moe-dark
+ ;; Font lock faces
+ `(font-lock-builtin-face ((,class (:foreground
,moe-dark-builtin ))))
+ `(font-lock-comment-delimiter-face ((,class (:foreground
,moe-dark-comment-delimiter :slant italic))))
+ `(font-lock-comment-face ((,class (:foreground
,moe-dark-comment :slant italic))))
+ `(font-lock-constant-face ((,class (:foreground
,moe-dark-constant ))))
+ `(font-lock-doc-face ((,class (:foreground ,moe-dark-doc
))))
+ `(font-lock-doc-string-face ((,class (:foreground
,moe-dark-doc-string ))))
+ `(font-lock-function-name-face ((,class (:foreground
,moe-dark-function-name ))))
+ `(font-lock-keyword-face ((,class (:foreground
,moe-dark-keyword ))))
+ `(font-lock-negation-char-face ((,class (:foreground
,moe-dark-negation-char ))))
+ `(font-lock-preprocessor-face ((,class (:foreground
,moe-dark-preprocessor ))))
+ `(font-lock-regexp-grouping-backslash ((,class (:foreground
,moe-dark-regexp-grouping-backslash))))
+ `(font-lock-regexp-grouping-construct ((,class (:foreground
,moe-dark-regexp-grouping-construct))))
+ `(font-lock-string-face ((,class (:foreground
,moe-dark-string ))))
+ `(font-lock-type-face ((,class (:foreground ,moe-dark-type
))))
+ `(font-lock-variable-name-face ((,class (:foreground
,moe-dark-variable-name ))))
+ `(font-lock-warning-face ((,class (:foreground
,moe-dark-warning :weight bold ))))
;; Ensure sufficient contrast on low-color terminals.
- `(default ((((class color) (min-colors 4096))
- (:foreground ,white-1 :background ,black-5))
- (((class color) (min-colors 256))
- (:foreground ,white-1 :background ,black-5))
- (,class
- (:foreground ,white-1 :background ,black-5))))
+ `(default ((((class color) (min-colors 4096)) (:foreground ,white-1
:background ,black-5))
+ (((class color) (min-colors 256)) (:foreground ,white-1
:background ,black-5))
+ (,class (:foreground ,white-1 :background ,black-5))))
`(cursor ((,class (:background ,white-0))))
;; Highlighting faces
@@ -74,24 +106,6 @@ Moe, moe, kyun!")
`(warning ((,class (:foreground ,orange-1))))
`(success ((,class (:foreground ,green-1))))
- ;; Font lock faces
- `(font-lock-builtin-face ((,class (:foreground ,purple-1))))
- `(font-lock-comment-delimiter-face ((,class (:foreground ,black-2-5 :slant
italic))))
- `(font-lock-comment-face ((,class (:foreground ,black-2-5 :slant italic))))
- `(font-lock-constant-face ((,class (:foreground ,blue-1))))
- `(font-lock-doc-face ((,class (:foreground ,red-0))))
- `(font-lock-doc-string-face ((,class (:foreground ,yellow-3))))
- `(font-lock-function-name-face ((,class (:foreground ,yellow-2))))
- `(font-lock-keyword-face ((,class (:foreground ,green-2))))
- `(font-lock-negation-char-face ((,class (:foreground ,red-0))))
- `(font-lock-preprocessor-face ((,class (:foreground ,purple-1))))
- `(font-lock-regexp-grouping-backslash ((,class (:foreground ,yellow-1))))
- `(font-lock-regexp-grouping-construct ((,class (:foreground ,purple-1))))
- `(font-lock-string-face ((,class (:foreground ,magenta-2))))
- `(font-lock-type-face ((,class (:foreground ,cyan-3))))
- `(font-lock-variable-name-face ((,class (:foreground ,orange-2))))
- `(font-lock-warning-face ((,class (:weight bold :foreground ,red-2))))
-
;; Completions
`(completions-annotations ((,class (:foreground ,green-2))))
`(completions-common-part ((,class (:foreground ,black-2-5))))
@@ -944,11 +958,7 @@ Moe, moe, kyun!")
(custom-theme-set-variables
'moe-dark
- `(ansi-color-names-vector [,black-5 ,red-0 ,green-0 ,yellow-1
- ,blue-1 ,purple-1 ,blue-0 ,white-1])))
-
-
-(setq moe-theme-which-enabled 'dark)
+ `(ansi-color-names-vector [,black-5 ,red-0 ,green-0 ,yellow-1 ,blue-1
,purple-1 ,blue-0 ,white-1])))
(provide-theme 'moe-dark)
diff --git a/moe-light-theme.el b/moe-light-theme.el
index 3bd66ccbc1..ed1af61ea2 100644
--- a/moe-light-theme.el
+++ b/moe-light-theme.el
@@ -33,24 +33,24 @@ Moe, moe, kyun!")
(linum-dark "#87875f") (linum-light "#d7d7af")
)
;; Customize color
- (defvar moe-light-bg LIGHT_BG)
- (defvar moe-light-fg black-5)
- (defvar moe-light-builtin purple-2)
- (defvar moe-light-comment-delimiter white-4)
- (defvar moe-light-comment white-4)
- (defvar moe-light-constant blue-2)
- (defvar moe-light-doc red-2)
- (defvar moe-light-doc-string yellow-3)
- (defvar moe-light-function-name red-1)
- (defvar moe-light-keyword green-3)
- (defvar moe-light-negation-char red-2)
- (defvar moe-light-preprocessor purple-2)
+ (defvar moe-light-bg LIGHT_BG)
+ (defvar moe-light-fg black-5)
+ (defvar moe-light-builtin purple-2)
+ (defvar moe-light-comment-delimiter white-4)
+ (defvar moe-light-comment white-4)
+ (defvar moe-light-constant blue-2)
+ (defvar moe-light-doc red-2)
+ (defvar moe-light-doc-string yellow-3)
+ (defvar moe-light-function-name red-1)
+ (defvar moe-light-keyword green-3)
+ (defvar moe-light-negation-char red-2)
+ (defvar moe-light-preprocessor purple-2)
(defvar moe-light-regexp-grouping-backslash orange-2)
(defvar moe-light-regexp-grouping-construct purple-2)
- (defvar moe-light-string magenta-3)
- (defvar moe-light-type cyan-5)
- (defvar moe-light-variable-name orange-2)
- (defvar moe-light-warning red-2)
+ (defvar moe-light-string magenta-3)
+ (defvar moe-light-type cyan-5)
+ (defvar moe-light-variable-name orange-2)
+ (defvar moe-light-warning red-2)
(custom-theme-set-faces
'moe-light
@@ -70,7 +70,7 @@ Moe, moe, kyun!")
`(font-lock-string-face ((,class (:foreground
,moe-light-string ))))
`(font-lock-type-face ((,class (:foreground ,moe-light-type
))))
`(font-lock-variable-name-face ((,class (:foreground
,moe-light-variable-name ))))
- `(font-lock-warning-face ((,class (:foreground
,moe-light-warning :weight bold ))))
+ `(font-lock-warning-face ((,class (:foreground
,moe-light-warning :weight bold))))
;; Ensure sufficient contrast on low-color terminals.
`(default ((((class color) (min-colors 4096)) (:foreground ,moe-light-fg
:background ,moe-light-bg))
(((class color) (min-colors 256)) (:foreground ,moe-light-fg
:background ,moe-light-bg))
@@ -966,9 +966,6 @@ Moe, moe, kyun!")
'moe-light
`(ansi-color-names-vector [,black-5 ,red-0 ,green-2 ,yellow-1 ,blue-1
,purple-1 ,blue-0 ,white-0])))
-
-(setq moe-theme-which-enabled 'light)
-
(provide-theme 'moe-light)
;; Local Variables:
- [nongnu] elpa/moe-theme 962f836801 340/352: Remove background from tuareg mode operators, (continued)
- [nongnu] elpa/moe-theme 962f836801 340/352: Remove background from tuareg mode operators, ELPA Syncer, 2022/01/07
- [nongnu] elpa/moe-theme 0cc3f1143c 341/352: Cherrypick README from master, ELPA Syncer, 2022/01/07
- [nongnu] elpa/moe-theme b135f24d5a 344/352: undelete moe-theme-switcher, ELPA Syncer, 2022/01/07
- [nongnu] elpa/moe-theme b23975ba57 348/352: Turn off aggressive-indent-mode only if it's actually on. (#115), ELPA Syncer, 2022/01/07
- [nongnu] elpa/moe-theme 76116f6eeb 345/352: fix: double loading of moe-theme (#109), ELPA Syncer, 2022/01/07
- [nongnu] elpa/moe-theme 9c40f856fc 351/352: Fix package file header for `package-buffer-info`, ELPA Syncer, 2022/01/07
- [nongnu] elpa/moe-theme 47c6cf35f7 186/352: Change color of linum-highlight to green-0., ELPA Syncer, 2022/01/07
- [nongnu] elpa/moe-theme 3109097aab 314/352: alas, ELPA Syncer, 2022/01/07
- [nongnu] elpa/moe-theme 4c3e98a922 315/352: aaaaa, ELPA Syncer, 2022/01/07
- [nongnu] elpa/moe-theme 5a7b99645d 317/352: Fix shits, ELPA Syncer, 2022/01/07
- [nongnu] elpa/moe-theme 2634eb6d92 319/352: customizable font-lock color,
ELPA Syncer <=
- [nongnu] elpa/moe-theme 2730a51402 322/352: Fix wrong faces of tomorrow, ELPA Syncer, 2022/01/07
- [nongnu] elpa/moe-theme ea199be564 323/352: Add monokai, ELPA Syncer, 2022/01/07
- [nongnu] elpa/moe-theme 97de98fd32 325/352: Modify monokai color slightly to fit terminal 256-colors, ELPA Syncer, 2022/01/07
- [nongnu] elpa/moe-theme 1372097312 318/352: More shits, ELPA Syncer, 2022/01/07
- [nongnu] elpa/moe-theme 780c2fc9e2 327/352: Clean up README for v2.x, ELPA Syncer, 2022/01/07
- [nongnu] elpa/moe-theme a259f254d3 328/352: Remove the damning long commentary in moe-theme.el, ELPA Syncer, 2022/01/07
- [nongnu] elpa/moe-theme 49a51d6b83 335/352: moe-theme-flavour-default, ELPA Syncer, 2022/01/07
- [nongnu] elpa/moe-theme 06235c61f3 336/352: (Maybe) Fix background of font-lock. issue #103, ELPA Syncer, 2022/01/07
- [nongnu] elpa/moe-theme 4c2b510809 337/352: Fix unclear face of magit-section-heading-selection, ELPA Syncer, 2022/01/07
- [nongnu] elpa/moe-theme f3ee835b5f 338/352: notmuch: Distinguishable color for single-line message summary (#104), ELPA Syncer, 2022/01/07