|
@@ -86,7 +86,11 @@ int main(int argc, char* argv[]) {
|
|
|
|
|
|
|
|
// Load initial file if provided
|
|
// Load initial file if provided
|
|
|
if (!filename.empty()) {
|
|
if (!filename.empty()) {
|
|
|
- core.load_file(filename);
|
|
|
|
|
|
|
+ if (core.load_file(filename)) {
|
|
|
|
|
+ if (core.lua_api()) {
|
|
|
|
|
+ core.lua_api()->execute("auto_activate_major_mode()");
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// Run main loop
|
|
// Run main loop
|