fix: emacs - yaml highlight with catppuccin-emacs

This commit is contained in:
Ryan Yin
2024-01-03 13:47:49 +08:00
parent a3b9c43c44
commit 04c2901b5e

View File

@@ -35,7 +35,7 @@
;; (setq doom-theme 'doom-one)
;; https://github.com/catppuccin/emacs/
(setq doom-theme 'catppuccin)
(setq catppuccin-flavor 'mocha) ;; or 'latte, 'macchiato, or 'frappe
(setq catppuccin-flavor 'frappe) ;; 'frappe, 'latte, 'macchiato, or 'mocha
;; make emacs transparent(do not works on terminal)
;; (set-frame-parameter nil 'alpha-background 70)
;; (add-to-list 'default-frame-alist '(alpha-background . 70))
@@ -116,3 +116,10 @@
;; fully enable tree-sitter highlighting
(after! tree-sitter
(setq +tree-sitter-hl-enabled-modes t))
;; fix yaml highlighting for catppuccin theme
;; https://github.com/catppuccin/emacs/issues/55
(add-hook 'yaml-mode-hook
(lambda ()
(face-remap-add-relative 'font-lock-variable-name-face
(list :foreground (catppuccin-get-color 'blue)))))