Skip to content

Commit

Permalink
example: from C-a to C-h for help bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
vindarel committed Dec 27, 2024
1 parent e62d3e0 commit 7ceae9b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions content/en/usage/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,20 +108,20 @@ You can also use `lem:define-keys` to define more than one key at once:

~~~lisp
(define-keys *global-keymap*
("C-a b" 'describe-bindings)
("C-a k" 'describe-key)
("C-a a" 'lem-lisp-mode:lisp-apropos)
("C-a c" 'apropos-command)
("C-a p" 'lem-lisp-mode:lisp-apropos-package)
("C-a f" 'lem-lisp-mode:lisp-describe-symbol))
("C-h b" 'describe-bindings)
("C-h k" 'describe-key)
("C-h a" 'lem-lisp-mode:lisp-apropos)
("C-h c" 'apropos-command)
("C-h p" 'lem-lisp-mode:lisp-apropos-package)
("C-h f" 'lem-lisp-mode:lisp-describe-symbol))
~~~

But wait, there is more.

### Defining a keymap

Did you notice that all the above commands have
the `C-a` prefix? We can refactor this.
the `C-h` prefix? We can refactor this.

First, we define a keymap object. Let's take another example, the
frame-multiplexer (aka tabs):
Expand Down

0 comments on commit 7ceae9b

Please sign in to comment.