[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/auto-dim-other-buffers d8987326e6 20/82: dim new windows t
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/auto-dim-other-buffers d8987326e6 20/82: dim new windows that pop up |
Date: |
Mon, 12 Dec 2022 20:58:39 -0500 (EST) |
branch: elpa/auto-dim-other-buffers
commit d8987326e685272a74f118d1bc4f5e5f861ea81c
Author: Steven Degutis <sbdegutis@gmail.com>
Commit: Steven Degutis <sbdegutis@gmail.com>
dim new windows that pop up
---
auto-dim-other-buffers.el | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/auto-dim-other-buffers.el b/auto-dim-other-buffers.el
index 35734041d9..0a60110071 100644
--- a/auto-dim-other-buffers.el
+++ b/auto-dim-other-buffers.el
@@ -2,7 +2,7 @@
;; Author: Steven Degutis
;; URL: https://github.com/sdegutis/auto-dim-other-buffers.el
-;; Version: 1.2
+;; Version: 1.3
(defface auto-dim-other-buffers-face '((t :background "black"))
"Face (presumably dimmed somehow) for non-current buffers."
@@ -32,6 +32,12 @@
(set-buffer original)
(buffer-face-set nil))))
+;; if a new window pops up, like a help window or something, we
+;; should dim or undim it, depending on if its selected.
+(defun adob/after-change-major-mode-hook ()
+ (buffer-face-set (unless (eq (current-buffer) (window-buffer))
+ 'auto-dim-other-buffers-face)))
+
(defun adob/set-face-on-all-buffers (face)
(let ((original (current-buffer)))
(dolist (buffer (buffer-list))
@@ -48,13 +54,15 @@
(defun turn-off-auto-dim-other-buffers ()
(remove-hook 'pre-command-hook 'adob/pre-command-hook)
(remove-hook 'post-command-hook 'adob/post-command-hook)
+ (remove-hook 'after-change-major-mode-hook
'adob/after-change-major-mode-hook)
(adob/undim-all-windows))
(defun turn-on-auto-dim-other-buffers ()
(setq adob/last-buffer nil)
(adob/dim-all-windows)
(add-hook 'pre-command-hook 'adob/pre-command-hook)
- (add-hook 'post-command-hook 'adob/post-command-hook))
+ (add-hook 'post-command-hook 'adob/post-command-hook)
+ (add-hook 'after-change-major-mode-hook 'adob/after-change-major-mode-hook))
(define-minor-mode auto-dim-other-buffers-mode
"Visually makes non-current buffers less prominent"
- [nongnu] elpa/auto-dim-other-buffers 2a19931b27 80/82: Introduce ‘auto-dim-other-buffers-hide-face’ for hidden dimmed text, (continued)
- [nongnu] elpa/auto-dim-other-buffers 2a19931b27 80/82: Introduce ‘auto-dim-other-buffers-hide-face’ for hidden dimmed text, ELPA Syncer, 2022/12/12
- [nongnu] elpa/auto-dim-other-buffers f0d48d94c3 77/82: Introduce ‘auto-dim-other-buffers-never-dim-buffer-functions’, ELPA Syncer, 2022/12/12
- [nongnu] elpa/auto-dim-other-buffers 33b5f88b79 82/82: Correctly handle optional kill-all-local-variables argument in advice, ELPA Syncer, 2022/12/12
- [nongnu] elpa/auto-dim-other-buffers 9f768ddd9a 76/82: Debounce focus-change events, ELPA Syncer, 2022/12/12
- [nongnu] elpa/auto-dim-other-buffers 07d906f0f0 04/82: useless extra thing, ELPA Syncer, 2022/12/12
- [nongnu] elpa/auto-dim-other-buffers e473ef45ea 05/82: set buffer faces MUCH less often, ELPA Syncer, 2022/12/12
- [nongnu] elpa/auto-dim-other-buffers 7ed6580b7d 12/82: update sshot, ELPA Syncer, 2022/12/12
- [nongnu] elpa/auto-dim-other-buffers e93f115d32 09/82: comments and fix, ELPA Syncer, 2022/12/12
- [nongnu] elpa/auto-dim-other-buffers b236157a77 15/82: uhh, ELPA Syncer, 2022/12/12
- [nongnu] elpa/auto-dim-other-buffers 8f58e3f7fe 27/82: Use “adob--” as a prefix for private stuff., ELPA Syncer, 2022/12/12
- [nongnu] elpa/auto-dim-other-buffers d8987326e6 20/82: dim new windows that pop up,
ELPA Syncer <=
- [nongnu] elpa/auto-dim-other-buffers 6600c79600 24/82: Mark adob-mode as autoload function, ELPA Syncer, 2022/12/12
- [nongnu] elpa/auto-dim-other-buffers 932b16751f 31/82: .gitignore *.elc files., ELPA Syncer, 2022/12/12
- [nongnu] elpa/auto-dim-other-buffers a385b6013e 39/82: Drop turn-{on, off}-* functions., ELPA Syncer, 2022/12/12
- [nongnu] elpa/auto-dim-other-buffers 8c4470713f 33/82: Set lexical binding on., ELPA Syncer, 2022/12/12
- [nongnu] elpa/auto-dim-other-buffers a066c32ada 40/82: Allow disabling “dimming on focus out” feature, ELPA Syncer, 2022/12/12
- [nongnu] elpa/auto-dim-other-buffers 8b1d8803b5 43/82: Fix Markdown formatting in README file, ELPA Syncer, 2022/12/12
- [nongnu] elpa/auto-dim-other-buffers e9c886fac5 42/82: Use even number of arguments for `setq', ELPA Syncer, 2022/12/12
- [nongnu] elpa/auto-dim-other-buffers 853523a854 50/82: Don't dim last buffer when switching to minibuffer or echo area., ELPA Syncer, 2022/12/12
- [nongnu] elpa/auto-dim-other-buffers efd617c999 60/82: Make sure current buffer is not dimmed when the mode is enabled, ELPA Syncer, 2022/12/12
- [nongnu] elpa/auto-dim-other-buffers e4ef0a93ca 66/82: Unconditionally undim selected buffer when focus is regained, ELPA Syncer, 2022/12/12