Modular Configs

If your config starts to grow too big for a single file, you can break it up into smaller modules:

~/apps.wks
b "Brave" %{{brave}}
e "Emacs" { :include "emacs.wks" }
s "Spotify" %{{spotify}}
~/emacs.wks
o "Open" %{{emacs}}
r "Roam" %{{emacs ~/Documents/roam}}
~/settings.wks
:font "monospace, 12"
:delay 0
:top
~/main.wks
:include "settings.wks"
a "Apps"  { :include "apps.wks" }
e "Emacs" { :include "emacs.wks" }
~/main.wks
:font "monospace, 12"
:delay 0
:top
a "Apps"
{
    b "Brave" %{{brave}}
    e "Emacs"
    {
        o "Open" %{{emacs}}
        r "Roam" %{{emacs ~/Documents/roam}}
    }
    s "Spotify" %{{spotify}}
}
e "Emacs"
{
    o "Open" %{{emacs}}
    r "Roam" %{{emacs ~/Documents/roam}}
}

In the modular example, you only need to run wk --key-chords ~/main.wks and all your included files will get pulled in.

See also

Read the complete documentation on the :include macro here.