branch: elpa/auto-dim-other-buffers commit 244c979b6763b26d8cb758599df9a8406f3be780 Author: justin talbott <jus...@waymondo.com> Commit: justin talbott <jus...@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