# keymap/save-overrides
Diff the live keymap against the per-package defaults and write only the bindings that changed or were added. Defaults the user removed are written as `nil` so the disable survives a reload. This is the canonical save path for the keys app.
## Syntax
[keymap/save-overrides ?path]
## Parameters
- `?path` — (optional) destination, defaults to the workspace keytable.
## Examples
[keymap/save-overrides]
[keymap/save-overrides ".deft/keytable.dft"]
## Returns
Number of override entries written (`0` when the live keymap matches the defaults), or `-1` on write failure. Output is the same nested-map format as `keymap/save`.
## See Also
`keymap/save`, `keymap/scan-overrides`, `keymap/reset`