Maybe GeanyLua + `~/.geany/plugins/geanylua/events/saved.lua`? (See [geanylua-intro.html](https://github.com/geany/geany-plugins/blob/master/geanylua/docs/geanylua-in...).) ```lua local alist = { ["C"] = "BUILD_COMPILE", ["Python"] = "BUILD_LINK", ["Lua"] = "BUILD_RUN" } local afile = geany.fileinfo() geany.keycmd(alist[afile.type]) ``` where `["x"]` is the name from `filetype_extensions.conf`.