From eb0aed4d651eae2202b4af1c772d7cd6950f105b Mon Sep 17 00:00:00 2001 From: arthur Date: Sun, 25 Jan 2026 15:59:45 +0100 Subject: [PATCH] Update Home --- Home.md | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/Home.md b/Home.md index 87fe1c7..f0fca94 100644 --- a/Home.md +++ b/Home.md @@ -29,17 +29,36 @@ You have on the release page the binary of the editor already compile and ready Here is a list of none exhaustive builtins functions. +## Add-prefix +### Syntax + +```lisp +(add-prefix "prefix-name")``` + +### Description +The `add-prefix` function create a new prefix that can be used for `map-keys`. The default prefix is "no-prefix" and should be used for normal uses in map-keys. + +## editor-set-prefix +### Syntax + +```lisp +(editor-set-prefix "prefix-name") +``` + +### Description +The `add-prefix` function changes the current prefix state to the new one. + ## Map-key ### Syntax ``` lisp -(map-key "key-binds" command) +(map-key "key-binds" command "prefix") ``` ### Description -The `map-key` function allows you to link lisp function (or builtins CLispFunction) to key sequences. +The `map-key` function allows you to link lisp function (or builtins CLispFunction) to key sequences with a certain prefix. ## Define