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

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

[nongnu] elpa/monokai-theme 031849a 189/207: Merge pull request #89 from


From: ELPA Syncer
Subject: [nongnu] elpa/monokai-theme 031849a 189/207: Merge pull request #89 from notetiene/master
Date: Thu, 21 Oct 2021 18:07:59 -0400 (EDT)

branch: elpa/monokai-theme
commit 031849ab863a29e7576535af92b11d535e762440
Merge: bb5cbbd 2a9a057
Author: Kelvin Smith <onekelvinsmith@gmail.com>
Commit: GitHub <noreply@github.com>

    Merge pull request #89 from notetiene/master
    
    Add fallback option for doc face
---
 monokai-theme.el | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

diff --git a/monokai-theme.el b/monokai-theme.el
index 71a7d52..57c060c 100644
--- a/monokai-theme.el
+++ b/monokai-theme.el
@@ -4,7 +4,7 @@
 
 ;; Author: Kelvin Smith <oneKelvinSmith@gmail.com>
 ;; URL: http://github.com/oneKelvinSmith/monokai-emacs
-;; Version: 3.5.0
+;; Version: 3.5.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
@@ -68,6 +68,12 @@ Also affects 'linum-mode' background."
   :type 'boolean
   :group 'monokai)
 
+(defcustom monokai-doc-face-as-comment nil
+  "Consider `font-lock-doc-face' as comment instead of a string."
+  :type 'boolean
+  :group 'monokai
+  :package-version "3.5.1")
+
 (defcustom monokai-height-minus-1 0.8
   "Font size -1."
   :type 'number
@@ -322,8 +328,12 @@ Also affects 'linum-mode' background."
       (,monokai-256-class (:foreground ,monokai-256-violet))))
 
    `(font-lock-doc-face
-     ((,monokai-class (:foreground ,monokai-yellow))
-      (,monokai-256-class (:foreground ,monokai-256-yellow))))
+     ((,monokai-class (:foreground ,(if monokai-doc-face-as-comment
+                                        monokai-comments
+                                      monokai-yellow)))
+      (,monokai-256-class (:foreground ,(if monokai-doc-face-as-comment
+                                            monokai-256-comments
+                                          monokai-256-yellow)))))
 
    `(font-lock-function-name-face
      ((,monokai-class (:foreground ,monokai-green))



reply via email to

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