@techee 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},
Basically I was just talking about calling the function in `on_doc_open()` which you already did. But what I think might be going on here is that Geany first calls the "document-open" signal and then sets the filetype in which case it overrides what you set in `on_doc_open()`. But I think you could use `g_idle_add()` inside `on_doc_open()` and set it in the callback which will be called after the function that calls "document-open" finishes.