diff options
Diffstat (limited to 'docs/macros.md')
| -rw-r--r-- | docs/macros.md | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/macros.md b/docs/macros.md index 3d5b05b4a..6b128541b 100644 --- a/docs/macros.md +++ b/docs/macros.md | |||
| @@ -43,7 +43,7 @@ A macro can include the following commands: | |||
| 43 | 43 | ||
| 44 | ## Sending strings | 44 | ## Sending strings |
| 45 | 45 | ||
| 46 | Sometimes you just want a key to type out words or phrases. For the most common situations we've provided `SEND_STRING()`, which will type out your string for you instead of having to build a `MACRO()`. Right now it assumes a US keymap with a QWERTY layout, so if you are using something else it may not behave as you expect. | 46 | Sometimes you just want a key to type out words or phrases. For the most common situations we've provided `SEND_STRING()`, which will type out your string for you instead of having to build a `MACRO()`. |
| 47 | 47 | ||
| 48 | For example: | 48 | For example: |
| 49 | 49 | ||
| @@ -60,6 +60,12 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) { | |||
| 60 | }; | 60 | }; |
| 61 | ``` | 61 | ``` |
| 62 | 62 | ||
| 63 | By default, it assumes a US keymap with a QWERTY layout; if you want to change that (e.g. if your OS uses software Colemak), include this somewhere in your keymap: | ||
| 64 | |||
| 65 | ``` | ||
| 66 | #include <sendstring_colemak.h> | ||
| 67 | ``` | ||
| 68 | |||
| 63 | ## Mapping a Macro to a key | 69 | ## Mapping a Macro to a key |
| 64 | 70 | ||
| 65 | Use the `M()` function within your `KEYMAP()` to call a macro. For example, here is the keymap for a 2-key keyboard: | 71 | Use the `M()` function within your `KEYMAP()` to call a macro. For example, here is the keymap for a 2-key keyboard: |
