Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix variable name face #212

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,40 @@ Doom users must call `(load-theme 'catppuccin t t)` before being able to call an
>[!NOTE]
>If you are using doom emacs and want to customize the `catppuccin-flavor`, calling `(catppuccin-reload)` after `load-theme` may slow emacs startup time. To change the flavor, it is sufficient to `setq` the desired flavor before loading the theme. Then, calling `(catppuccin-reload)` can be omitted because catppuccin will be loaded with the desired flavor directly.

Some aspects of this theme are customizable. You can change them either by doing
`M-x customize-group catppuccin` or setting one or more of the following values in
your Emacs init file. Note that these variables need to be set **before** `load-theme`
is invoked for Catppuccin.

``` emacs-lisp
;; Don't change the font size for some headings and titles (default t)
(setq catppuccin-enlarge-headings nil)

;; Adjust font size of titles level 1 (default 1.3)
(setq catppuccin-height-title-1 1.25)

;; Adjust font size of titles level 2 (default 1.1)
(setq catppuccin-height-title-2 1.15)

;; Adjust font size of titles level 3 (default 1.0)
(setq catppuccin-height-title-3 1.05)

;; Adjust font size of document titles (default 1.44)
(setq catppuccin-height-doc-title 1.4)

;; Use background color to make highlighted matches more visible. (default nil)
(setq catppuccin-highlight-matches t)

;; Use :slant italic for comments. (default nil)
(setq catppuccin-italic-comments t)

;; Use :slant italic for blockquotes in markdown and org. (default nil)
(setq catppuccin-italic-blockquotes t)

;; Use :slant italic for variables. (default nil)
(setq catppuccin-italic-variables nil)
```

## 💝 Thanks to

- [Nyx](https://github.com/nyxkrage)
Expand Down
3 changes: 1 addition & 2 deletions catppuccin-theme.el
Original file line number Diff line number Diff line change
Expand Up @@ -419,8 +419,7 @@ FLAVOR defaults to the value of `catppuccin-flavor'."
(font-lock-regexp-grouping-construct :foreground ,ctp-red)
(font-lock-string-face :foreground ,ctp-green)
(font-lock-type-face :foreground ,ctp-yellow)
(font-lock-variable-name-face :foreground ,ctp-text
,@(when catppuccin-italic-variables '(:inherit italic)))
(font-lock-variable-name-face :foreground ,ctp-lavender)
(font-lock-variable-use-face :foreground ,ctp-text
,@(when catppuccin-italic-variables '(:inherit italic)))
(font-lock-warning-face :inherit warning)
Expand Down