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

New global property alpha-background #78

Open
omidmnz opened this issue Aug 16, 2023 · 1 comment
Open

New global property alpha-background #78

omidmnz opened this issue Aug 16, 2023 · 1 comment

Comments

@omidmnz
Copy link

omidmnz commented Aug 16, 2023

Emacs 29 has introduced alpha-background frame parameter, which I am currently using for transparency. As a result, writeroom-mode no longer toggles transparency for me. I have added the following lines to my configuration to restore the previous toggle behavior

(define-writeroom-global-effect alpha-background 100)
(add-to-list 'writeroom-global-effects 'writeroom-set-alpha-background)

I don't know if it is backwards compatible to add these to the mainwriteroom-modesource, but I think this is the correct behavior in the newer Emacs versions.

@joostkremers
Copy link
Owner

I think it should be safe to add this, because Emacs should ignore frame parameters that it doesn't know about. I'll have to test it, though.

Thanks for the suggestion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants