gonewest818 / dimmer.el

Interactively highlight which buffer is active by dimming the others.
GNU General Public License v3.0
267 stars 14 forks source link

How to exclude Hydra windows and Ivy/Counsel minibuffer interface? #19

Closed alienbogart closed 4 years ago

alienbogart commented 5 years ago

Runtime Environment

I guess I could add my Ivy/Counsel minibuffer and Hydra windows to dimmer-exclusion-regexp, but I don't know which terms to use. Hydras and minibuffer don't appear the buffer list. Any idea on how to accomplish that? Thanks!

azzamsa commented 5 years ago

@mrbig033 have you find a solution ? I faced the same problem with Hydra

azzamsa commented 5 years ago

Solved. Adding "*LV*" to dimmer-exclusion-regexp-list solved the problem.

Previously:

2019-01-16-13 03 05

Now:

2019-01-16-13 03 32

stardiviner commented 5 years ago

How about company-box child-frame?

azzamsa commented 4 years ago

How about company-box child-frame?

You mean this?

Peek 2019-10-24 11-12

alienbogart commented 4 years ago

@azzamsa Thank you for the solve. It's working flawlessly! Could to explain why does it work, though? ;)

In the meantime, not to be a choosing beggar, but may I suggest you share your solutions as text and not images? I had to take a screenshot of your GIF just to make sense of it.

If you don't track your configurations on Git, you can always post it on this field as formatted as code, or use https://gist.github.com/ and similar services if it is too long.

Anyway: I'm happy to be able to use this very useful package once again. Cheers!

azzamsa commented 4 years ago

:)

I think I've explained it in my previous comment:

Solved. Adding "LV" to dimmer-exclusion-regexp-list solved the problem.

(use-package dimmer
  :defer 1
  :load-path "~/emacs-packages/dimmer.el/"
  :config
  (setq dimmer-exclusion-predicates '(helm--alive-p window-minibuffer-p))
  (setq dimmer-exclusion-regexp-list
        '("^\\*[h|H]elm.*\\*" "^\\*Minibuf-[0-9]+\\*"
          "^.\\*which-key\\*$" "^*Messages*" "*LV*"
          "transient"))
  (setq dimmer-fraction 0.50)
  (dimmer-mode t))

Take a note that I use this PR https://github.com/gonewest818/dimmer.el/pull/16, with some addition in. read more in my comment https://github.com/gonewest818/dimmer.el/pull/16#issuecomment-545734769

Btw, this is my .emacs.d repo: https://github.com/azzamsa/emacs.d