Closed amake closed 5 years ago
In the move to the new repo, the format-on-save functionality got left out.
Currently, dart-server-format-on-save is defined but unused. It was previously used like so: https://github.com/bradyt/dart-mode/blob/e41f41e09cfeb35f3733f07c06ee8037825fb5ab/dart-mode.el#L2041
dart-server-format-on-save
This patch restores the functionality, with some tweaks:
LOCAL
add-hook
before-save-hook
Merged. Thank you!
In the move to the new repo, the format-on-save functionality got left out.
Currently,
dart-server-format-on-save
is defined but unused. It was previously used like so: https://github.com/bradyt/dart-mode/blob/e41f41e09cfeb35f3733f07c06ee8037825fb5ab/dart-mode.el#L2041This patch restores the functionality, with some tweaks:
LOCAL
argument ofadd-hook
to make thebefore-save-hook
buffer-local