branch: elpa/dracula-theme
commit 110c0bc44fef6f83220330fe5cae215c39be6e5a
Author: wmedrano <[email protected]>
Commit: wmedrano <[email protected]>
Rename dracula-alternate-syntax to dracula-bolder-keywords
---
README.md | 4 ++--
dracula-theme.el | 10 +++++-----
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/README.md b/README.md
index bc524f9b42..dd03f7eb29 100644
--- a/README.md
+++ b/README.md
@@ -38,8 +38,8 @@ need to be set before `load-theme` is invoked for Dracula.
;; Use less pink and bold on the mode-line and minibuffer (default nil)
(setq dracula-alternate-mode-line-and-minibuffer t)
-;; Use normal weight for syntax faces like keywords, functions, and variables
(default nil)
-(setq dracula-alternate-syntax t)
+;; Use normal weight for syntax faces like keywords, functions, and variables
(default t)
+(setq dracula-bolder-keywords nil)
```
## Test
diff --git a/dracula-theme.el b/dracula-theme.el
index 442a43cd98..8debd1b953 100644
--- a/dracula-theme.el
+++ b/dracula-theme.el
@@ -152,8 +152,8 @@ The theme has to be reloaded after changing anything in
this group."
:type 'boolean
:group 'dracula)
-(defcustom dracula-alternate-syntax nil
- "Use normal weight for syntax faces (keywords, functions, variables)."
+(defcustom dracula-bolder-keywords t
+ "Use bold weight for syntax faces (keywords, functions, variables)."
:type 'boolean
:group 'dracula)
@@ -250,10 +250,10 @@ read it before opening a new issue about your will.")
(font-lock-constant-face :foreground ,dracula-purple)
(font-lock-doc-face :foreground ,dracula-comment)
(font-lock-function-name-face :foreground ,dracula-green
- ,@(unless dracula-alternate-syntax
+ ,@(when dracula-bolder-keywords
(list :weight 'bold)))
(font-lock-keyword-face :foreground ,dracula-pink
- ,@(unless dracula-alternate-syntax
+ ,@(when dracula-bolder-keywords
(list :weight 'bold)))
(font-lock-negation-char-face :foreground ,dracula-cyan)
(font-lock-number-face :foreground ,dracula-purple)
@@ -265,7 +265,7 @@ read it before opening a new issue about your will.")
(font-lock-string-face :foreground ,dracula-yellow)
(font-lock-type-face :inherit font-lock-builtin-face)
(font-lock-variable-name-face :foreground ,dracula-fg
- ,@(unless dracula-alternate-syntax
+ ,@(when dracula-bolder-keywords
(list :weight 'bold)))
(font-lock-warning-face :inherit warning :background ,bg2)
;; auto-complete