Comments (3)
This should now be possible to overwrite with org-mode 9.6.4 9.7 when it releases, or if using org-mode straight from main with
(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.
ref: org-mode: Fontify src blocks without lang
from emacs.
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.
from emacs.
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 default
for unstyled parts.
I am looking into it, but havenβt found a solution nor workaround yet.
from emacs.
Related Issues (20)
- doesn't highlight quote blocks properly
- Use of theme causes frame to immediately close HOT 2
- Recommend users to use the Melpa version HOT 1
- No iedit faces specified (used by evil-multiedit) HOT 1
- Release for catppuccin-theme.el HOT 1
- active region almost unnoticable HOT 2
- Eshell prompt is very hard to read
- Install Instructions Causes Error HOT 10
- Extemely small fonts when running Emacs Daemon HOT 1
- Font scaling issues HOT 3
- rustic quantize color error HOT 6
- htmlize generate css
- Change org-hide from ctp-crust to ctp-base HOT 2
- Debugger entered--Lisp error: (wrong-type-argument arrayp nil) HOT 1
- Follow new styleguide
- src block accent HOT 1
- Poor colors in magit when viewing cherries
- Background is base when using "peek implementations" of lsp-mode HOT 3
- Contrast issue on company-mode / Selection invisible on magit log HOT 1
- face for `trailing-whitespace` should use background HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emacs.