Avoid nav-flash after each hydra action

Hydra displays the hints in a buffer created by lv-window, which
triggers nav-flash. By advicing lv-window, we can inhibit the nav-flash
hook.
This commit is contained in:
Benno Fünfstück 2019-11-03 23:04:06 +01:00
parent 95c3682716
commit 280da15280

View file

@ -8,3 +8,9 @@
;;;###package hydra
(setq lv-use-separator t)
(after! hydra
(defadvice! +hydra/inhibit-window-switch-hooks-a (orig-fn)
:around #'lv-window
(let ((doom-inhibit-switch-window-hooks t))
(funcall orig-fn))))