Sublime Forum

How strat sublime immediately in distraction free mode

#1

it is not possible to set up the editor (for instatn in
Preferences.sublime-settings as for example “distraction_free_mode”:
true, ) that start direct in distraction free mode when I run it. After start I can use shift+f11 but I
would like to start editor immediately in distraction free mode ?

LF

0 Likes

#2

Something like the following saved as a python file in your user package will make sublime jump to distraction free mode when it starts up. Note however that there is a small delay between when the sublime window appears and the change; this may or may not be longer depending on the number of packages you have installed,

import sublime
import sublime_plugin

def plugin_loaded ():
    sublime.active_window ().run_command ("toggle_distraction_free")
4 Likes

#3

Thank you. I use it but this small delay is anoing.

0 Likes