Skip to content

Commit

Permalink
undefine keys
Browse files Browse the repository at this point in the history
  • Loading branch information
vindarel committed Jan 2, 2025
1 parent 3c25e88 commit 87d5044
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions content/en/usage/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,24 @@ And now we can define the prefix key for our keymap and all its sub-keys command
As a result, we defined `C-z c` for `'frame-mulitplexer-create-with-new-buffer-list`.


## Undefining keys

Did you define keys? It's also possible to *undefine* them.

*NOTE: this function was added the 1st of January, 2025.*

Use `undefine-key` and `undefine-keys`.

Example:

```lisp
(undefine-key *paredit-mode-keymap* "C-k")
(undefine-keys *paredit-mode-keymap* ("C-k")
("C-L"))
```


## Writing one's own commands

Use `define-command`:
Expand Down

0 comments on commit 87d5044

Please sign in to comment.