Zulip Chat Archive
Stream: new members
Topic: Project-wide `set_option foo true`?
Louis Cabarion (Aug 19 2025 at 19:55):
What’s the recommended way to set set_option foo true "project-wide"?
In other words, I’d like it to behave as if every .lean file in the project started with set_option foo true (after import:s), but configured in a single place (rather than repeating it in each file).
Aaron Liu (Aug 19 2025 at 19:57):
You can put it in the lakefile
Louis Cabarion (Aug 19 2025 at 20:28):
@Aaron Liu That sounds great! I checked the lakefile documentation but couldn’t find the name of the setting key. Do you know how to set it?
Aaron Liu (Aug 19 2025 at 20:29):
You can copy off of what mathlib does
Michael Rothgang (Aug 19 2025 at 20:30):
As another example (of a lakefile.toml; mathlib has a lakefile.lean): https://github.com/leanprover-community/sphere-eversion/blob/master/lakefile.toml sets the pp.unicode.fun to true
Last updated: Dec 20 2025 at 21:32 UTC