Napoleon Crossing the Alps by Jacques-Louis David
general.el is a wrapper for the interface that lets users define keybindings for GNU/Emacs.
Lets load up the
general.el package here.
With this package, we create a function that is called
zamlz/leader-keys that lets us quickly define personal keybindings to a global prefix.
(general-create-definer zamlz/leader-keys :keymaps '(normal insert visual emacs) :prefix "SPC" :global-prefix "M-SPC")
Add a couple of useful keybindings here for fun. I'll have to properly organize this later. This also showcases how to use the predefined function above. We also
(zamlz/leader-keys "t" '(:ignore t :which-key "toggles"))
Make sure to provide the package as well.