Thanks for the explanation! On Saturday, November 8, 2025 at 12:16:09 PM UTC+1 Edward K. Ream wrote:
> On Fri, Nov 7, 2025 at 11:52 PM 'rengel' via leo-editor < > [email protected]> wrote: > > Why are myLeoSettings.leo are read twice in a row? >> > > Excellent question. > > Leo always reads at least one .leo file twice. For example: > > reading settings in C:\Repos\leo-editor\leo\config\leoSettings.leo > reading settings in C:\Users\Dev\.leo\myLeoSettings.leo > reading settings in C:\Users\Dev\ekr.leo # My local file, read only for > its settings. > reading settings in C:\Users\Dev\.leo\EKRWindowsDark.leo > reading settings in C:\Users\Dev\ekr.leo # My local file, read for its > entire content. > > The reason is complicated, but the general idea is that Leo must read all > your settings files before reading the files on the command line (or the > equivalent of the command line, as with sessions). So Leo will read > myLeoSettings.leo twice if you are editing myLeoSettings.leo explicitly. > > The load process (including loading settings files) probably will not (can > not!) ever change. The code in question is the LoadManager class in > leoApp.py. > > Edward > -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/leo-editor/3a6f292a-24d5-49b3-b705-a61c79aff59en%40googlegroups.com.
