On Fri, Feb 23, 2018 at 1:15 PM, Phil <[email protected]> wrote: > I want a script to run every time I start Leo. How can I do this? >
There are several ways: 1. *Clumsy*: Create a plugin that runs at startup, that is, at 'start1' or 'start2' time. See this page <http://leoeditor.com/writingPlugins.html#summary-of-event-handlers>. 2. *Dangerous*: Set @bool scripting-at-script-nodes = True. You can then put an @script node in your .leo files. This is a serious security issue. It will enable @script nodes in *all* your .leo files. For this reason, @bool scripting-at-script-nodes can only be set to True in your myLeoSettings.leo file. Most other editors allow a script to be executed once on startup. I have just created #740 Execute .leo/leo_startup.py on startup <https://github.com/leo-editor/leo-editor/issues/740> to schedule this enhancement. 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 post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
