Hammerspoon places it's config files in ~/.hammerspoon. This contributes to dot file/folder clutter in my home folder.
I think it would be great if Hammerspoon put files like this in the XDG Base Directory Specification directories. In this particular case that would likely mean ~/.config/hammerspoon.
I'm not familiar with the codebase, but I'd assume it should be pretty easy to first check if ~/.hammerspoon exists, then use that folder to preserve backward compatibility, otherwise use ~/.config/hammerspoon.
I'm not sure if we'll ever get around to moving it properly, but you can override the default yourself with:
defaults write org.hammerspoon.Hammerspoon MJConfigFile "~/.config/hammerspoon/init.lua"
Thanks for the tip!
Would you accept a pull request that addressed this? If so, are there any files relevant to this besides variables.m?
Most helpful comment
I'm not sure if we'll ever get around to moving it properly, but you can override the default yourself with:
defaults write org.hammerspoon.Hammerspoon MJConfigFile "~/.config/hammerspoon/init.lua"