Make it easier to use jasonrudolph/keyboard in combination with other Hammerspoon customizations #25
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Prior to this change, jasonrudolph/keyboard essentially assumed that you had no use for Hammerspoon outside of the features provided by jasonrudolph/keyboard. 🙈 But Hammerspoon is awesome, and you ought to be able to use it however you like in addition to the Hammerspoon-powered features in jasonrudolph/keyboard.
Specifically, prior to this change, running
./script/setup
would use theinit.lua
file in this repository as theinit.lua
file for your Mac (i.e.,~/.hammerspoon/init.lua
). If you wanted to use additional Hammerspoon functionality, you had to edit~/.hammerspoon/init.lua
, which made it unnecessarily difficult to pull in the latest changes from this repository without overwriting your local customizations.With the change in this PR, running
./script/setup
will instead symlink this repository's Hammerspoon bits to~/.hammerspoon/keyboard/
, and it will idempotently update your~/.hammerspoon/init.lua
to load this repository's Hammerspoon bits. As a result, you're free to update your local~/.hammerspoon/init.lua
with additional Hammerspoon customizations [example], and you'll be able to pull in the latest changes from this repository without any fear of it overwriting your local customizations.