You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And this is just for me but I wanted to have a default hydra when not visiting a buffer with a mode that has a major hydra but your major-mode-hydra-dispatch function isn't customizable so I rewrote it like this:
(defun major-mode-hydra-dispatch (mode)
"Summon the hydra for given MODE (if there is one)."
(let ((orig-mode mode))
(catch 'done
(while mode
(let ((hydra (major-mode-hydra--body-name-for mode)))
(when (fboundp hydra)
(call-interactively hydra)
(throw 'done t)))
(setq mode (or (get mode 'derived-mode-parent) 'root-mode))))))
Thanks a lot for this package, it's really useful :-)
The text was updated successfully, but these errors were encountered:
Your major-mode-hydra-title-generator creates an eager macro expansion when used with a mode with no icon associated, I rewrote it like this:
And this is just for me but I wanted to have a default hydra when not visiting a buffer with a mode that has a major hydra but your major-mode-hydra-dispatch function isn't customizable so I rewrote it like this:
Thanks a lot for this package, it's really useful :-)
The text was updated successfully, but these errors were encountered: