I would like to separate init.lua
script used in Hammerspoon to enhance the readability and maintainance.
So it looks like the following:
- init.lua
- AppWatcher.lua
- WiFiWatcher.lua
- KeyRemap.lua
And then from within init.lua
I would read these files and make the watcher activate.
However, it seems that there is no such function defined (maybe I may be missing it, though). Is it possible to separate the logic like that in Hammerspoon?
require()
ordofile()
. Not sure if those are available in your environment. – Clementina