Maybe GeanyLua + `~/.geany/plugins/geanylua/events/saved.lua`? (See 
[geanylua-intro.html](https://github.com/geany/geany-plugins/blob/master/geanylua/docs/geanylua-intro.html).)
```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`.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/3295#issuecomment-1289129126
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany/issues/3295/1289129...@github.com>

Reply via email to