martanne / vis

A vi-like editor based on Plan 9's structural regular expressions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Setting default theme

vannotz opened this issue · comments

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.

commented

Try set it on vis.events.INIT

That does seem to work better, thank you.