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

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

[nongnu] elpa/spacemacs-theme d484fcb3db 258/336: Add italics for keywor


From: ELPA Syncer
Subject: [nongnu] elpa/spacemacs-theme d484fcb3db 258/336: Add italics for keywords (Fix #114)
Date: Fri, 14 Jan 2022 10:59:43 -0500 (EST)

branch: elpa/spacemacs-theme
commit d484fcb3dbf8431cd8490d3d34fd428b208b4693
Author: nashamri <designernasser@gmail.com>
Commit: nashamri <designernasser@gmail.com>

    Add italics for keywords (Fix #114)
---
 README.md           | 4 ++++
 spacemacs-common.el | 7 ++++++-
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md
index 5a988a66ce..6236867789 100644
--- a/README.md
+++ b/README.md
@@ -59,6 +59,10 @@ This toggles a background color for the comment lines.
 
 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-keyword-italic`:
+
+This toggles italics for keywords.
+
 * `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 afa1053cf1..6b167c3bb0 100644
--- a/spacemacs-common.el
+++ b/spacemacs-common.el
@@ -51,6 +51,11 @@
   :type 'boolean
   :group 'spacemacs-theme)
 
+(defcustom spacemacs-theme-keyword-italic nil
+  "Enable italics for keywords."
+  :type 'boolean
+  :group 'spacemacs-theme)
+
 (defcustom spacemacs-theme-org-agenda-height nil
   "If non-nil, use varying text heights for agenda items.
 
@@ -173,7 +178,7 @@ to 'auto, tags may not be properly aligned. "
      `(font-lock-constant-face ((,class (:foreground ,const))))
      `(font-lock-doc-face ((,class (:foreground ,meta))))
      `(font-lock-function-name-face ((,class (:foreground ,func :inherit 
bold))))
-     `(font-lock-keyword-face ((,class (:inherit bold :foreground ,keyword))))
+     `(font-lock-keyword-face ((,class (:inherit bold :foreground ,keyword 
:slant ,(if spacemacs-theme-keyword-italic 'italic 'normal)))))
      `(font-lock-negation-char-face ((,class (:foreground ,const))))
      `(font-lock-preprocessor-face ((,class (:foreground ,func))))
      `(font-lock-reference-face ((,class (:foreground ,const))))



reply via email to

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