8 void load_settings(void)
10 lua_State *L = lua_open();
13 if (luaL_loadfile(L, CONFIG_FILE) == 0) {
14 if (lua_pcall(L, 0, 0, 0) == 0) {
15 normal_border_color = lua_stringexpr(L, "set.normal_border_color", NORMAL_BORDER_COLOR);
16 border_width = lua_intexpr(L, "set.border_width", BORDER_WIDTH);
17 split_ratio = lua_doubleexpr(L, "set.split_ratio", SPLIT_RATIO);
18 smart_surroundings = lua_boolexpr(L, "set.smart_surroundings", SMART_SURROUNDINGS);
20 die("error: cannot interpret configuration file\n");
23 die("error: could not load configuration file\n");