[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/auto-dim-other-buffers fb7ea24922 26/82: dimming/undimming
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/auto-dim-other-buffers fb7ea24922 26/82: dimming/undimming when gaining/losing app focus |
Date: |
Mon, 12 Dec 2022 20:58:39 -0500 (EST) |
branch: elpa/auto-dim-other-buffers
commit fb7ea24922ca38c7895cf992b0bb3458f2d914fe
Author: justin talbott <justin@waymondo.com>
Commit: justin talbott <justin@waymondo.com>
dimming/undimming when gaining/losing app focus
This will dim all windows when you lose focus of Emacs 24.4+ and undim
the active buffer when you gain focus back. It's helpful for something
like a multi-monitor setup where you need to know which screen's app
currently has focus.
---
auto-dim-other-buffers.el | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/auto-dim-other-buffers.el b/auto-dim-other-buffers.el
index 95f487dc21..f57192b67d 100644
--- a/auto-dim-other-buffers.el
+++ b/auto-dim-other-buffers.el
@@ -56,6 +56,8 @@
(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 'focus-out-hook 'adob/dim-all-windows)
+ (remove-hook 'focus-in-hook 'adob/after-change-major-mode-hook)
(remove-hook 'after-change-major-mode-hook
'adob/after-change-major-mode-hook)
(remove-hook 'next-error-hook 'adob/after-change-major-mode-hook)
(adob/undim-all-windows))
@@ -65,6 +67,8 @@
(adob/dim-all-windows)
(add-hook 'pre-command-hook 'adob/pre-command-hook)
(add-hook 'post-command-hook 'adob/post-command-hook)
+ (add-hook 'focus-out-hook 'adob/dim-all-windows)
+ (add-hook 'focus-in-hook 'adob/after-change-major-mode-hook)
(add-hook 'after-change-major-mode-hook 'adob/after-change-major-mode-hook)
(add-hook 'next-error-hook 'adob/after-change-major-mode-hook))
- [nongnu] branch elpa/auto-dim-other-buffers created (now 33b5f88b79), ELPA Syncer, 2022/12/12
- [nongnu] elpa/auto-dim-other-buffers 890051374f 01/82: first, ELPA Syncer, 2022/12/12
- [nongnu] elpa/auto-dim-other-buffers 16db9f4942 06/82: MUCH more efficient: only changes faces for 2 buffers max, and only when necessary, ELPA Syncer, 2022/12/12
- [nongnu] elpa/auto-dim-other-buffers e7fcc5336c 13/82: less ceremonial readme?, ELPA Syncer, 2022/12/12
- [nongnu] elpa/auto-dim-other-buffers 6804fde17b 11/82: screenshot, ELPA Syncer, 2022/12/12
- [nongnu] elpa/auto-dim-other-buffers fb7ea24922 26/82: dimming/undimming when gaining/losing app focus,
ELPA Syncer <=
- [nongnu] elpa/auto-dim-other-buffers e64bdbdb0a 34/82: Use `face-remap-add-relative' to not interfere with `buffer-face-mode', ELPA Syncer, 2022/12/12
- [nongnu] elpa/auto-dim-other-buffers 6ebff3681f 46/82: Don’t dim already dimmed buffer, ELPA Syncer, 2022/12/12
- [nongnu] elpa/auto-dim-other-buffers e85510688d 19/82: duh, ELPA Syncer, 2022/12/12
- [nongnu] elpa/auto-dim-other-buffers c80b367dd0 22/82: Leave echo area alone, ELPA Syncer, 2022/12/12
- [nongnu] elpa/auto-dim-other-buffers bea02696f0 21/82: Use save-current-buffer and with-current-buffer, ELPA Syncer, 2022/12/12
- [nongnu] elpa/auto-dim-other-buffers a969ff4e0e 16/82: minor mode, ELPA Syncer, 2022/12/12
- [nongnu] elpa/auto-dim-other-buffers cfab476572 36/82: Move hooks adding/removing to separate function, ELPA Syncer, 2022/12/12
- [nongnu] elpa/auto-dim-other-buffers cedb4c4895 47/82: Use ‘buffer-list-update-hook’ instead of ‘post-command-hook’, ELPA Syncer, 2022/12/12
- [nongnu] elpa/auto-dim-other-buffers 44b8965cff 32/82: Specify the license, GPL-3.0+ is used., ELPA Syncer, 2022/12/12
- [nongnu] elpa/auto-dim-other-buffers 4cc1e1bb08 55/82: Add version of the dim face for light background, ELPA Syncer, 2022/12/12