[hammerspoon] Move paste-blocking into fennel
change
commit 344c287a27f15e2b407272638a5bc9e3f0f12e93
author Alpha Chen <alpha@kejadlen.dev>
date
parent f54e2dda
diff --git a/.hammerspoon/init.fnl b/.hammerspoon/init.fnl
index be03f233..fbc7da89 100644
--- a/.hammerspoon/init.fnl
+++ b/.hammerspoon/init.fnl
@@ -12,4 +12,6 @@
                        (win:move geo nil true)))]
   (hs.hotkey.bind mash "h" (fn [] (move :left)))
   (hs.hotkey.bind mash "l" (fn [] (move :right)))
-  (hs.hotkey.bind mash "m" (fn [] (move :max))))
+  (hs.hotkey.bind mash "m" (fn [] (move :max)))
+  (hs.hotkey.bind [:cmd :alt] "v" (fn [] (hs.eventtap.keyStrokes (hs.pasteboard.getContents)))))
+
diff --git a/.hammerspoon/init.lua b/.hammerspoon/init.lua
index 4e00d886..68fd02ec 100644
--- a/.hammerspoon/init.lua
+++ b/.hammerspoon/init.lua
@@ -3,10 +3,6 @@ table.insert(package.loaders or package.searchers, fennel.searcher)
 
 fennel.dofile("init.fnl", { allowedGlobals = false })
 
--- Defeat paste blocking --
-
-hs.hotkey.bind({"cmd", "alt"}, "v", function() hs.eventtap.keyStrokes(hs.pasteboard.getContents()) end)
-
 -- Debugging --
 
 -- hs.hotkey.bind(mash, "d", function()