-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
Org blocks uses green for unstyled syntax when language is set #61
Comments
Hey 👋 I am actually aware of this, and it seems to be an issue with specifically org-mode source block, that use the normal source block face rather than I am looking into it, but haven’t found a solution nor workaround yet. |
Yeah so all the other themes have the same problem, what is happening with Catppuccin is that both string and the source blocks are green. What purple and nord have is that their source blocks without a language set are just white. As a workaround you can change the color of source blocks to text with (defun ctp/text-org-blocks ()
(face-remap-add-relative 'org-block (list :foreground (catppuccin-get-color 'text))))
(add-hook! 'org-mode-hook 'ctp/text-org-blocks) I'll leave the issue open until a proper solution is found. |
This should now be possible to overwrite with org-mode (setq org-src-fontify-natively t)
(add-to-list 'org-src-block-faces (list "" (list :foreground (catppuccin-get-color 'green))))
(defun ctp/text-org-blocks ()
(face-remap-add-relative 'org-block (list :foreground (catppuccin-get-color 'text))))
(add-hook! 'org-mode-hook 'ctp/text-org-blocks) I will keep this open until I get around to making a PR that has catppuccin automatically set this. |
org-mode 9.7 has since been released |
The syntax for C++ is not highlighted correctly, or has colours that are too similar
Others
Catppuccin
The text was updated successfully, but these errors were encountered: