diff options
| author | y-jan137 <yousefjan24000@gmail.com> | 2026-03-17 17:26:41 +0300 |
|---|---|---|
| committer | y-jan137 <yousefjan24000@gmail.com> | 2026-03-17 17:26:41 +0300 |
| commit | cc15cecf57ad36019db7909cc22710bd0118da12 (patch) | |
| tree | dff05e43c260b053cf561b210bec73952b694346 /doom/config.el | |
| parent | a5c55c048461c11177eed8be28def01aa4bb4502 (diff) | |
Updates
Diffstat (limited to 'doom/config.el')
| -rw-r--r-- | doom/config.el | 37 |
1 files changed, 18 insertions, 19 deletions
diff --git a/doom/config.el b/doom/config.el index 87b55c6..1b28487 100644 --- a/doom/config.el +++ b/doom/config.el @@ -75,27 +75,26 @@ ;; You can also try 'gd' (or 'C-c c d') to jump to their definition and see how ;; they are implemented. - (after! evil +(after! evil (require 'evil-collection)) -(add-to-list 'default-frame-alist '(alpha-background . 0)) -(set-frame-parameter nil 'alpha-background 0) +(after! solaire-mode + (solaire-global-mode -1)) -;; Force default face background to be transparent -(defun my/transparent-background () - (set-face-attribute 'default nil :background "unspecified") - (set-face-background 'default "unspecified-bg")) +(defun my/make-all-faces-transparent (&optional frame) + "Remove background color from ALL faces in terminal Emacs." + (or frame (setq frame (selected-frame))) + (unless (display-graphic-p frame) + (set-face-background 'default "unspecified-bg" frame) + (mapc (lambda (face) + (when (facep face) + (let ((bg (face-background face nil nil))) + (when (and bg (not (string= bg "unspecified-bg"))) + (set-face-background face "unspecified-bg" frame))))) + (face-list)))) -(add-hook 'doom-load-theme-hook #'my/transparent-background) +(add-hook 'doom-load-theme-hook #'my/make-all-faces-transparent) +(add-hook 'after-make-frame-functions #'my/make-all-faces-transparent) +(add-hook 'window-setup-hook #'my/make-all-faces-transparent) -(add-hook 'doom-load-theme-hook - (lambda () - (dolist (face '(default - fringe - mode-line - mode-line-inactive - line-number - line-number-current-line - region)) - (when (facep face) - (set-face-background face "unspecified"))))) +(my/make-all-faces-transparent) |