[hammerspoon] Clean up init

pull/28/head
Alpha Chen 9 years ago
parent 435f2b6f18
commit b0bed07cb6

@ -1,5 +1,5 @@
local mash = {"cmd", "alt", "ctrl"} local mash = {"cmd", "alt", "ctrl"}
local mash = {"cmd", "alt", "ctrl", "shift"} local smash = {"cmd", "alt", "ctrl", "shift"}
-- Application shortcuts -- Application shortcuts
@ -57,9 +57,8 @@ function current_app()
return hs.application.frontmostApplication() return hs.application.frontmostApplication()
end end
function reload_config(files) hs.pathwatcher.new(os.getenv("HOME") .. "/.hammerspoon/", function()
hs.reload() hs.reload()
end end):start()
hs.pathwatcher.new(os.getenv("HOME") .. "/.hammerspoon/", reload_config):start()
hs.alert.show("Config loaded") hs.alert.show("Config loaded")

Loading…
Cancel
Save