Created
February 13, 2021 09:44
-
-
Save Dima-369/6fb5ed7d0f69f99b2602e64b5811437d to your computer and use it in GitHub Desktop.
Emacs auto-dim-other-buffers package config (not used anymore because the package always likes to turn itself back on)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; to never dim the which-key frame and the deadgrep window | |
(defun mpn-never-dim-hidden (buf) | |
(or (string-match-p (regexp-quote "*deadgrep ") (buffer-name buf)) | |
(eq ?\s (aref (buffer-name buf) 0))) | |
(add-hook 'auto-dim-other-buffers-never-dim-buffer-functions #'mpn-never-dim-hidden) | |
(add-hook 'after-init-hook (lambda () | |
(when (fboundp 'auto-dim-other-buffers-mode) | |
(auto-dim-other-buffers-mode t)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment