[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/spacemacs-theme 30e16f3435 207/336: Add custom option to e
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/spacemacs-theme 30e16f3435 207/336: Add custom option to enable italics for comments |
Date: |
Fri, 14 Jan 2022 10:59:36 -0500 (EST) |
branch: elpa/spacemacs-theme
commit 30e16f3435cc0bdf425572a7dbec4e7c703cc17c
Author: Rafael Rinaldi <rafael@rinaldi.io>
Commit: Rafael Rinaldi <rafael@rinaldi.io>
Add custom option to enable italics for comments
---
README.md | 4 ++++
spacemacs-common.el | 10 ++++++++--
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 3d3dc23a44..90ddbc9f67 100644
--- a/README.md
+++ b/README.md
@@ -52,6 +52,10 @@ The theme has some options that can be tweaked via `M-x
customize`:
This toggles a background color for the comment lines.
+* `spacemacs-theme-comment-italic`:
+
+This toggles italics for comments and will also add a lighter color to it. It
is recommended to disable `spacemacs-theme-comment-bg` if you turn this option
on for better contrast.
+
* `spacemacs-theme-org-agenda-height`:
This toggles the use of varying org agenda heights.
diff --git a/spacemacs-common.el b/spacemacs-common.el
index 7a99bee095..70492e55e9 100644
--- a/spacemacs-common.el
+++ b/spacemacs-common.el
@@ -46,6 +46,11 @@
:type 'boolean
:group 'spacemacs-theme)
+(defcustom spacemacs-theme-comment-italic nil
+ "Enable italics for comments and also disable background."
+ :type 'boolean
+ :group 'spacemacs-theme)
+
(defcustom spacemacs-theme-org-agenda-height t
"Use varying text heights for org agenda."
:type 'boolean
@@ -62,7 +67,7 @@
:group 'spacemacs-theme)
(defcustom spacemacs-theme-custom-colors nil
- "Specify a list of custom colors"
+ "Specify a list of custom colors."
:type 'alist
:group 'spacemacs-theme)
@@ -95,6 +100,7 @@
(cursor (if (eq variant 'dark) (if (true-color-p) "#e3dedd"
"#d0d0d0") (if (true-color-p) "#100a14" "#121212")))
(const (if (eq variant 'dark) (if (true-color-p) "#a45bad"
"#d75fd7") (if (true-color-p) "#4e3163" "#8700af")))
(comment (if (eq variant 'dark) (if (true-color-p) "#2aa1ae"
"#008787") (if (true-color-p) "#2aa1ae" "#008787")))
+ (comment-light (if (eq variant 'dark) (if (true-color-p) "#2aa1ae"
"#008787") (if (true-color-p) "#a49da5" "#008787")))
(comment-bg (if (eq variant 'dark) (if (true-color-p) "#292e34"
"#262626") (if (true-color-p) "#ecf3ec" "#ffffff")))
(comp (if (eq variant 'dark) (if (true-color-p) "#c56ec3"
"#d75fd7") (if (true-color-p) "#6c4173" "#8700af")))
(err (if (eq variant 'dark) (if (true-color-p) "#e0211d"
"#e0211d") (if (true-color-p) "#e0211d" "#e0211d")))
@@ -153,7 +159,7 @@
`(eval-sexp-fu-flash ((,class (:background ,suc :foreground ,bg1))))
`(eval-sexp-fu-flash-error ((,class (:background ,err :foreground ,bg1))))
`(font-lock-builtin-face ((,class (:foreground ,keyword))))
- `(font-lock-comment-face ((,class (:foreground ,comment :background
,(when spacemacs-theme-comment-bg comment-bg)))))
+ `(font-lock-comment-face ((,class (:foreground ,(if
spacemacs-theme-comment-italic comment-light comment) :background ,(when
spacemacs-theme-comment-bg comment-bg) :slant ,(if
spacemacs-theme-comment-italic 'italic 'normal)))))
`(font-lock-constant-face ((,class (:foreground ,const))))
`(font-lock-doc-face ((,class (:foreground ,comment))))
`(font-lock-function-name-face ((,class (:foreground ,func :inherit
bold))))
- [nongnu] elpa/spacemacs-theme efea72889d 127/336: Support markdown mode, (continued)
- [nongnu] elpa/spacemacs-theme efea72889d 127/336: Support markdown mode, ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme 98e0a17210 125/336: Refactor org headings, ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme 5f52881e45 103/336: Merge pull request #23 from xuchunyang/master, ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme a799577f90 096/336: Tweaks to org code blocks, ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme 108cbbd93a 132/336: Update documentation of base-dim, ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme 4b73dfc72b 159/336: Support highlight-symbol.el, ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme b61aface0a 172/336: Lazy-highlight (#55), ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme 1c3080cdab 173/336: Fix (#54) avy highlighting in terminal, ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme 9358c37ee9 199/336: Merge pull request #77 from benjamreynolds/patch-1, ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme 9100128ebd 211/336: Update README, ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme 30e16f3435 207/336: Add custom option to enable italics for comments,
ELPA Syncer <=
- [nongnu] elpa/spacemacs-theme f4a324dce1 213/336: Merge pull request #84 from jabranham/calfw, ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme be01cae704 203/336: Merge pull request #80 from jabranham/mu4e-maildirs, ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme 9ae49faf0a 239/336: Support `line-numer-current-line` face., ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme 8223455132 291/336: Remove dyn-let as discussed in issue #139., ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme b6463a6f04 260/336: Merge pull request #117 from jabranham/new-ess-faces, ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme 16ae2301ac 270/336: Set line-number face unconditionally, ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme 5196e9b502 285/336: Update README (Fix #133), ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme 4dde300561 284/336: Merge pull request #132 from duianto/patch-1, ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme fd655a912c 237/336: Merge pull request #105 from jabranham/flymake, ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme a359ec8dfd 290/336: notmuch: fix performance issues with light theme, ELPA Syncer, 2022/01/14