@xiota commented on this pull request.
@@ -167,6 +307,7 @@ PluginCallback plugin_callbacks[] = {
{"document-open", (GCallback) & on_doc_open, TRUE, NULL}, {"document-activate", (GCallback) & on_doc_activate, TRUE, NULL}, {"document-close", (GCallback) & on_doc_close, TRUE, NULL}, + {"document-filetype-set", (GCallback) & on_doc_filetype_set, TRUE, NULL},
After reorganizing the code, it seems to work fine without `document-filetype-set`. I don't remember why I did it that way. Should I still use `g_idle_add()`?