[hammerspoon] Move paste-blocking into fennel

pull/30/head
Alpha Chen 5 years ago
parent f54e2ddab1
commit 344c287a27

@ -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)))))

@ -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()

Loading…
Cancel
Save