martanne / vis

A vi-like editor based on Plan 9's structural regular expressions
Other
4.19k stars 259 forks source link

Setting default theme #1112

Closed vannotz closed 11 months ago

vannotz commented 11 months ago

Very simple question, how do I set my default theme? I have this at my visrc.lu

require("vis")

vis.events.subscribe(vis.events.WIN_OPEN, function(win)
        vis:command('set theme ashes')
end)

But this simply changes the theme when I open vis, I can see the theme changing for a split second. What I want is to set a default theme. Thank you in advance.

erf commented 11 months ago

Try set it on vis.events.INIT

vannotz commented 11 months ago

That does seem to work better, thank you.