mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Output vim style mode markers into the yaml config file
This commit is contained in:
parent
1c1d67dfef
commit
0bc71103e1
@ -147,9 +147,10 @@ class Config(object):
|
|||||||
and value is not None):
|
and value is not None):
|
||||||
config[key] = value
|
config[key] = value
|
||||||
with open(config_args.config_path, "w") as config_file:
|
with open(config_args.config_path, "w") as config_file:
|
||||||
# TODO(paul) it would be lovely if we wrote out vim- and emacs-
|
# TODO(mark/paul) We might want to output emacs-style mode
|
||||||
# style mode markers into the file, to hint to people that
|
# markers as well as vim-style mode markers into the file,
|
||||||
# this is a YAML file.
|
# to further hint to people this is a YAML file.
|
||||||
|
config_file.write("# vim:ft=yaml\n")
|
||||||
yaml.dump(config, config_file, default_flow_style=False)
|
yaml.dump(config, config_file, default_flow_style=False)
|
||||||
print (
|
print (
|
||||||
"A config file has been generated in %s for server name"
|
"A config file has been generated in %s for server name"
|
||||||
|
Loading…
Reference in New Issue
Block a user