]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Fix LEADER_KEY docs.
authordsissitka <me@dsissitka.com>
Sun, 16 Sep 2018 21:49:20 +0000 (17:49 -0400)
committerDrashna Jaelre <drashna@live.com>
Mon, 17 Sep 2018 21:38:06 +0000 (14:38 -0700)
LEADER_KEY needs to be set in config.h, not keymap.c. Credit goes to @randywallace for figuring this one out:

https://github.com/qmk/qmk_firmware/issues/2514#issuecomment-384847485

docs/feature_leader_key.md

index 0c3f4a13328fb3bdde90d843f032a95d23613b8c..92aebd463d67bd3655371cb47d740dbff90c69e2 100644 (file)
@@ -5,7 +5,7 @@ If you've ever used Vim, you know what a Leader key is. If not, you're about to
 That's what `KC_LEAD` does. Here's an example:
 
 1. Pick a key on your keyboard you want to use as the Leader key. Assign it the keycode `KC_LEAD`. This key would be dedicated just for this -- it's a single action key, can't be used for anything else.
-2. Include the line `#define LEADER_TIMEOUT 300` somewhere in your keymap.c file, probably near the top. The 300 there is 300ms -- that's how long you have for the sequence of keys following the leader. You can tweak this value for comfort, of course.
+2. Include the line `#define LEADER_TIMEOUT 300` in your config.h. The 300 there is 300ms -- that's how long you have for the sequence of keys following the leader. You can tweak this value for comfort, of course.
 3. Within your `matrix_scan_user` function, do something like this:
 
 ```