From 87d5044220ec9c9b4909f0127de9508fe18b08bc Mon Sep 17 00:00:00 2001 From: vindarel Date: Thu, 2 Jan 2025 22:07:15 +0100 Subject: [PATCH] undefine keys for https://github.com/lem-project/lem/pull/1727 --- content/en/usage/configuration.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/content/en/usage/configuration.md b/content/en/usage/configuration.md index 57ae58a..b2a7310 100644 --- a/content/en/usage/configuration.md +++ b/content/en/usage/configuration.md @@ -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`: