[hammerspoon] move debug from Lua to Fennel

pull/35/head
Alpha Chen 3 years ago
parent 6e89065264
commit aa7a22aa9e

@ -18,6 +18,9 @@
(let [mash [:cmd :alt :ctrl] (let [mash [:cmd :alt :ctrl]
smash [:cmd :alt :ctrl :shift]] smash [:cmd :alt :ctrl :shift]]
;; debugging
;; (hs.hotkey.bind mash "d" (fn []))
;; defeat paste blocking ;; defeat paste blocking
(hs.hotkey.bind [:cmd :alt] "v" (fn [] (hs.eventtap.keyStrokes (hs.pasteboard.getContents))))) (hs.hotkey.bind [:cmd :alt] "v" (fn [] (hs.eventtap.keyStrokes (hs.pasteboard.getContents)))))

@ -15,11 +15,6 @@ table.insert(package.loaders or package.searchers, fennel.searcher)
fennel.dofile("init.fnl", { allowedGlobals = false }) fennel.dofile("init.fnl", { allowedGlobals = false })
-- Debugging --
-- hs.hotkey.bind(mash, "d", function()
-- end)
-- Spoons -- -- Spoons --
hs.loadSpoon("Quitter") hs.loadSpoon("Quitter")

Loading…
Cancel
Save