[Emacs] Simplify background transparency settings
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Lucien Cartier-Tilet 2022-05-17 17:24:54 +02:00
parent 8971a5b868
commit c7519cfd9d
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA
1 changed files with 5 additions and 6 deletions

View File

@ -355,13 +355,11 @@ character of three dots. Lets make it so:
(setq truncate-string-ellipsis "…")
#+end_src
Thanks to [[https://github.com/TheVaffel/emacs][this fork]] of Emacs, it is now possible to set some
transparency to the background of Emacs only and not to the entire
frame.
With Emacs 29.0.50 onwards, a new frame parameter exists:
~alpha-background~. Unlike ~alpha~, this frame parameter only makes Emacs
background transparent, excluding images and text.
#+begin_src emacs-lisp
(add-hook 'server-after-make-frame-hook (lambda ()
(set-frame-parameter (selected-frame)
'alpha-background 0.7)))
(add-to-list 'default-frame-alist '(alpha-background . 0.7))
#+end_src
*** Modeline Modules
@ -3875,6 +3873,7 @@ The complete configuration for the ~exwm~ package can be found below.
(require 'exwm-config)
(setq exwm-workspace-number 6)
:config
(set-frame-parameter (selected-frame) 'alpha-background 0.7)
<<exwm-randr>>
<<exwm-buffers-name>>