aboutsummaryrefslogtreecommitdiff
path: root/init.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-25 09:25:32 -0500
committerCraig Jennings <c@cjennings.net>2026-05-25 09:25:32 -0500
commit77af7a5bd58f1b0e0991ea366d36a80cbf281580 (patch)
tree3300b006d4645dfd7321bfa151cf95a0366b5116 /init.el
parent2cb509c01c539d450ff41d0d2d22cfe0741daa6a (diff)
downloaddotemacs-77af7a5bd58f1b0e0991ea366d36a80cbf281580.tar.gz
dotemacs-77af7a5bd58f1b0e0991ea366d36a80cbf281580.zip
feat(auto-dim): dim non-selected windows via auto-dim-other-buffers
I added auto-dim-config, a module that loads my local auto-dim-other-buffers fork and dims windows that don't have focus so the selected window stands out. A non-selected window drops to a pure-black background with faded gray text. The dimmed faces live in the dupre theme (themes/dupre-faces.el) so they track theme switches, and the module remaps default, the font-lock faces, and org-block onto them so syntax-highlighted code fades too rather than staying lit. Fringe is left out because dimming it forces a full-frame refresh that flickers on this non-pgtk build. dim-on-focus-out is nil, so tabbing to a browser or terminal on Hyprland doesn't dim the whole frame. vterm and agent windows don't dim either, because the terminal paints its own per-cell colors past the face remap. I'm keeping that, since the agent's output stays readable while I work in code on the other side. The module loads after the theme, carries a load-graph header, joins the header-contract allowlist, and the inventory moves to 103 of 103 classified.
Diffstat (limited to 'init.el')
-rw-r--r--init.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/init.el b/init.el
index 57dd735a2..f65e60853 100644
--- a/init.el
+++ b/init.el
@@ -57,6 +57,7 @@
(require 'ui-config) ;; transparency, cursor color, icons, &c.
(require 'ui-theme) ;; themes and theme persistency
(cj/load-theme-from-file)
+(require 'auto-dim-config) ;; dim non-selected windows (faces live in the theme)
(require 'ui-navigation) ;; the movement and navigation of windows
(require 'font-config) ;; font and emoji configuration
(require 'nerd-icons-config) ;; nerd-icons + completion/ibuffer integration + tint