Created
December 3, 2014 19:22
-
-
Save boxxxie/629f6b0988048ce6d907 to your computer and use it in GitHub Desktop.
key binding file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; User keymap | |
;; ----------------------------- | |
;; Keymaps are stored as a set of diffs that are merged together to create | |
;; the final set of keys. You can modify these diffs to either add or | |
;; subtract bindings. | |
;; | |
;; Like behaviors, keys are bound by tag. When objects with those tags are active | |
;; the key bindings are live. Keys can be bound to any number of Light Table commands, | |
;; allowing you the flexibility to execute multiple operations together. To see a list | |
;; of all the commands you can execute, start typing a word related to the thing you | |
;; want to do in between the square brackets (e.g. type "editor"). | |
[ | |
[:app "ctrl-w" :workspace.show] | |
[:app "ctrl-c" :toggle-console] | |
[:app "ctrl-alt-c" :show-connect] | |
[:app "ctrl-i" :instarepl] | |
[:app "ctrl-t" :instarepl.toggle-live] | |
[:app "ctrl-alt-right" :tabs.next] | |
[:app "ctrl-alt-left" :tabs.prev] | |
[:app "ctrl-alt-up" :tabset.next] | |
[:app "ctrl-alt-down" :tabset.prev] | |
[:editor "alt-w" :editor.watch.watch-selection] | |
[:editor "alt-shift-w" :editor.watch.unwatch] | |
[:editor "pmeta-j" :smart-indent-selection] | |
;; moving in a sea of parens | |
[:editor.clj "alt-shift-right" :subpar.move.forward] | |
[:editor.clj "alt-shift-left" :subpar.move.backward] | |
[:editor.clj "alt-shift-down" :subpar.move.forward-down] | |
[:editor.clj "alt-shift-up" :subpar.move.forward-up] | |
;; grow and shrink | |
[:editor.clj "ctrl-shift-0" :paredit.grow.right] | |
[:editor.clj "ctrl-shift-9" :paredit.shrink.right] | |
[:editor.clj "ctrl-shift-[" :paredit.grow.left] | |
[:editor.clj "ctrl-shift-]" :paredit.shrink.left] | |
;; splice & kill | |
[:editor.clj "alt-s" :paredit-plus.splice-sexp] | |
[:editor.clj "alt-up" :paredit-plus.splice-sexp-killing-backward] | |
[:editor.clj "alt-down" :paredit-plus.splice-sexp-killing-forward] | |
[:editor.clj "alt-k" :paredit-plus.kill] | |
;; split & join | |
[:editor.clj "alt-\\" :paredit-plus.split-sexp] | |
[:editor.clj "alt-shift-\\" :paredit-plus.join-sexps] | |
;; select | |
[:editor.clj "alt-a" :paredit.select.parent] | |
[:editor.clj "alt-shift-a" :paredit.select.clear] | |
;; wrap in parens | |
[:editor.clj "alt-shift-9" :paredit-plus.wrap-round] | |
[:editor.clj "alt-[" :paredit-plus.wrap-square] | |
[:editor.clj "alt-shift-[" :paredit-plus.wrap-curly] | |
[:editor.clj "alt-shift-'" :paredit-plus.wrap-quote] | |
[:editor.clj "backspace" :paredit.backspace] | |
;; To subtract a binding, prefix the key with '-' e.g. | |
;; [:app "-ctrl-shift-d" :docs.search.show] | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment