Compare commits

...

2 Commits

Author SHA1 Message Date
Lucien Cartier-Tilet c7519cfd9d
[Emacs] Simplify background transparency settings
continuous-integration/drone/push Build is passing Details
2022-05-17 17:26:17 +02:00
Lucien Cartier-Tilet 8971a5b868
[Emacs] Make sure Forge keybinds are integrated with Magit 2022-05-17 17:24:27 +02:00
1 changed files with 7 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
@ -2624,6 +2622,8 @@ doing and what Git is doing! In short, I absolutely love it!
(use-package magit
:straight (:build t)
:defer t
:init
(setq forge-add-default-bindings t)
:custom
(magit-display-buffer-function #'magit-display-buffer-same-window-except-diff-v1)
:config
@ -3873,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>>