Kungsgeten / ryo-modal

Roll your own modal mode
MIT License
224 stars 16 forks source link

Activate a minor mode after exiting ryo-modal-mode #43

Closed shadowrylander closed 3 years ago

shadowrylander commented 3 years ago

Hello!

Perhaps a bit stupidly, I'd like to activate god-local-mode after exiting ryo-modal-mode; this is the configuration I'm currently attempting:

(ryo-modal-keys
    ;; First argument to ryo-modal-keys may be a list of keywords.
    ;; These keywords will be applied to all keybindings.
    (:norepeat t)
    ("qq" save-buffers-kill-emacs)
    ("ww" save-buffer)
    ("pp" kill-emacs)

    ;; TODO
    ("ee" god-local-mode :exit t)

)

Unfortunately, since I'm using it with use-package, it's stating that god-local-mode is not a function. I was therefore wondering whether you could help me narrow down whether this is an issue with ryo-modal, god-local-mode, or use-package.

Thank you kindly for the help!

shadowrylander commented 3 years ago

Ah; solved it by moving it out to a function of its own. Sorry for wasted issue!