Skip to content

Confusion with custom macros and combos #233

Closed Answered by manna-harbour
Kirsturino asked this question in Q&A
Discussion options

You must be logged in to vote

custom_config.h is intended just for cpp macros (e.g. #define), and in future there will be an analogous custom.keymap or similar for device tree. But given the way ZMK keymaps work, you can add keymap devicetree to custom_config.h and it'll be equivalent, so just do that for now. Note that you'll need to specify the node from the root.

So for macros, you can do that and then reference them in your custom layer etc. There's an example macro here https://github.com/manna-harbour/miryoku_zmk/blob/0865642f2e4f534a68667113e80a784435942c3f/miryoku/miryoku_kludge_tapdelay.h#L6, using this cpp macro https://github.com/manna-harbour/miryoku_zmk/blob/0865642f2e4f534a68667113e80a784435942c3f/miryok…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by manna-harbour
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants