From b0bed07cb64f101415bb430e1ad43eaa51bb7a07 Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Thu, 17 Mar 2016 16:18:49 -0700 Subject: [PATCH] [hammerspoon] Clean up init --- .hammerspoon/init.lua | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.hammerspoon/init.lua b/.hammerspoon/init.lua index c48c0ba..2f8f6f7 100644 --- a/.hammerspoon/init.lua +++ b/.hammerspoon/init.lua @@ -1,5 +1,5 @@ local mash = {"cmd", "alt", "ctrl"} -local mash = {"cmd", "alt", "ctrl", "shift"} +local smash = {"cmd", "alt", "ctrl", "shift"} -- Application shortcuts @@ -57,9 +57,8 @@ function current_app() return hs.application.frontmostApplication() end -function reload_config(files) - hs.reload() -end +hs.pathwatcher.new(os.getenv("HOME") .. "/.hammerspoon/", function() + hs.reload() +end):start() -hs.pathwatcher.new(os.getenv("HOME") .. "/.hammerspoon/", reload_config):start() hs.alert.show("Config loaded")