Closed rsuhada closed 8 years ago
This should do the trick (not tested):
(defun exit-on-space ()
(interactive)
(modalka-mode 0)
(insert-char 32))
BTW, if you type C-h f modalka-mode RET, then Emacs will tell you how to call the function and which arguments you can pass to it.
It works - thank you!
When in modalka mode, I'd like to hit space and 1. exit into insert mode and 2. insert a space. This is my attempt, except I can't figure out how to exit modalka programatically: