hammerspoon icon indicating copy to clipboard operation
hammerspoon copied to clipboard

Missing documentation for MJConfigFile

Open muescha opened this issue 3 years ago • 5 comments

i miss a info in the documentation that i can change the location for the MJConfigFile preference:

defaults write org.hammerspoon.Hammerspoon MJConfigFile "~/.config/hammerspoon/init.lua"

where would be the best location to add this?

muescha avatar Jan 31 '22 05:01 muescha

Maybe this should be added to the FAQ?

http://www.hammerspoon.org/faq/

latenitefilms avatar Jan 31 '22 05:01 latenitefilms

This was always intentionally hidden to keep things simple - we made the initial mistake of using ~/.hammerspoon/ instead of ~/.config/hammerspoon and this config option was added for people who really wanted to relocate it.

My only issue with prominently documenting it is that then we'll have more people moving their config and things will generally get more confusing.

cmsj avatar Jan 31 '22 09:01 cmsj

May be adding looking first in ~/.config/hammerspoon for a config and then in ./hammerspoon/ as default to make a slow switch to a new config folder. For new users use then ~/.config/hammerspoon.

dasmurphy avatar Feb 14 '22 17:02 dasmurphy

@dasmurphy thats also my idea to have it this way - use the better place as default and then a fallback.

muescha avatar Feb 16 '22 20:02 muescha