waymondo / frog-jump-buffer

The fastest buffer-jumping Emacs lisp package around
158 stars 5 forks source link

Option to customize `avy-background` #28

Closed gsingh93 closed 1 year ago

gsingh93 commented 1 year ago

This is how my posframe looks like at the moment:

image

I'd like to set avy-background to nil so it looks like this:

image

But I don't want to set it globally, I only want it for frog jump. Would it makes sense to add a frog-jump-buffer-avy-background customizable variable to handle this?

aatmunbaxi commented 1 year ago

I think this can be solved by hooking a localized avy-background value to frog-menu-after-init-hook. The following works for me

(defun my/frog-menu-hook () (
    (setq-local avy-background nil)
    )

(add-hook 'frog-menu-after-init-hook 'my/frog-menu-hook)
waymondo commented 1 year ago

sorry for the super long delay here. i think @aatmunbaxi's workaround works well enough as a quick fix.

if a first class solution was going to live in a package though, i would think it should be in frog-menu, since this is were other posframe-specific avy overrides live currently.