I am writing my own Emacs config coming from doom-emacs and Spacemacs. One thing I really miss is the ability to split windows using
S-w s s and
S-w s v. I am trying to add this to my config and saw that doom-emacs use hydra for this, however, how they do it is like this:
(defhydra +hydra/window-nav (:hint nil) ... ("s" split-window-below) ("v" split-window-right) ...)
Can see the source implementation here. I do not understand how it is connected. I tried to just copy their implementation like this:
(defhydra +hydra/window-nav (:hint nil) ("s" split-window-below) ("v" split-window-right))
But it is not working and did not expect that it would work, since we never bind space for example.. Anyone who could help me?