Configuration and multiple machines
Main settings
[def]
hide_console=1
src_dir=%a_ahkdir%\src
[gs]
diff=26Both def and gs sections are required. Global configuration uses a custom line-based parser. Values remain strings, path quotes are retained, and lines beginning with a semicolon are comments. Empty values are ignored. Duplicate sections replace earlier sections.
Some switches test presence or nonempty content, so 0 can still enable them. Consult the individual setting before disabling it.
| Setting | Purpose |
|---|---|
| undef_tip=1 | Display unmatched-gesture hints |
| src_dir | Command roots separated by a vertical bar |
| disk | Writable output directory |
| edit | Editor path or editing target |
| no_dll=1 / 2 | Default AHK backend uses Job / independent processes |
Paths and overrides
The main file expands %a_ahkdir% to the executable directory. %a_dir% refers to the first directory below the drive root, such as D:\Tools for D:\Tools\Diatom. Machine files currently require literal paths.
The computer name is lowercased, hyphens become underscores, and desktop_ is removed. DESKTOP-ABC therefore selects pc_abc.toml.
[def]
disk=E:\DiatomTempMachine files merge by section and key. An empty override cannot delete an existing main-file value. Put machine-only presence switches directly in that machine's file.
Command pc=[abc][laptop] and pc_bl=[office] act as machine filters. Back up your command and sample history before synchronizing updates.