about | blog | config | notes | github

1. More Conveniet Key Definitions in Emacs


Napoleon Crossing the Alps by Jacques-Louis David

general.el is a wrapper for the interface that lets users define keybindings for GNU/Emacs.

2. Package Install

Lets load up the general.el package here.

(use-package general)

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

 "t"  '(:ignore t :which-key "toggles"))

Make sure to provide the package as well.

(provide 'init-general)

Created: 2021-11-13

Emacs 26.1 (Org mode 9.5)