emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/auto-dim-other-buffers 244c979b67 25/82: after-change-majo


From: ELPA Syncer
Subject: [nongnu] elpa/auto-dim-other-buffers 244c979b67 25/82: after-change-major-mode-hook on next-error-hook
Date: Mon, 12 Dec 2022 20:58:39 -0500 (EST)

branch: elpa/auto-dim-other-buffers
commit 244c979b6763b26d8cb758599df9a8406f3be780
Author: justin talbott <justin@waymondo.com>
Commit: justin talbott <justin@waymondo.com>

    after-change-major-mode-hook on next-error-hook
    
    This properly sets the window dimming when using modes that implement
    `next-error` by undimming the buffer of the error you are jumping to.
---
 auto-dim-other-buffers.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/auto-dim-other-buffers.el b/auto-dim-other-buffers.el
index bf8a172784..95f487dc21 100644
--- a/auto-dim-other-buffers.el
+++ b/auto-dim-other-buffers.el
@@ -57,6 +57,7 @@
   (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)
+  (remove-hook 'next-error-hook 'adob/after-change-major-mode-hook)
   (adob/undim-all-windows))
 
 (defun turn-on-auto-dim-other-buffers ()
@@ -64,7 +65,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 'after-change-major-mode-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))
 
 ;;;###autoload
 (define-minor-mode auto-dim-other-buffers-mode



reply via email to

[Prev in Thread] Current Thread [Next in Thread]