Skip to content

Instantly share code, notes, and snippets.

@Dima-369
Created February 13, 2021 09:44
Show Gist options
  • Save Dima-369/6fb5ed7d0f69f99b2602e64b5811437d to your computer and use it in GitHub Desktop.
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)
;; 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