Skip to content

Instantly share code, notes, and snippets.

@MarcoPolo
Created March 12, 2014 21:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MarcoPolo/9516989 to your computer and use it in GitHub Desktop.
Save MarcoPolo/9516989 to your computer and use it in GitHub Desktop.
;; User keymap
;; -----------------------------
;; Keymaps are stored as a set of diffs that are merged together 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 {"pmeta-enter" [:show-commandbar-transient]
"ctrl-enter" [:show-commandbar-transient]
"pmeta-j" [:toggle-console]
"pmeta-t" [:navigate-workspace-transient]
"pmeta-shift-t" [:workspace.show]
"pmeta-shift-j" [:dev-inspector]
"pmeta-shift-r" [:refresh-connected-browser]
"pmeta-q" [:quit] }
:editor {"ctrl-space" [:eval-editor-form]
"ctrl-e" [:editor.watch.watch-selection]
"ctrl-shift-e" [:editor.watch.unwatch]
"pmeta-," [:paredit.shrink.right]
"pmeta-." [:paredit.shrink.left]
"pmeta-shift-," [:paredit.grow.left]
"pmeta-shift-." [:paredit.grow.right]
"pmeta-shift-a" [:paredit.select.parent]
"pmeta-x" [:print-line-text]
"pmeta-v" [:editor.paste]
"pmeta-c" [:editor.copy]
"ctrl-x ctrl-x" [:paredit.unwrap.parent]
"ctrl-c ctrl-c" [:clear-inline-results]}
:editor.shell {"ctrl-space" [:lt.plugins.lt-tmux/send-selected-text-to-tmux]}
:editor.octave {"ctrl-space" [:lt.plugins.lt-tmux/send-selected-text-to-tmux]}
:editor.keys.vim.normal {"cmd-d" [:editor.doc.toggle]
"shift-alt-s" [(:paredit.select.parent "(")]
"alt-s" [(:paredit.select.parent "(")
:smart-indent-selection
:paredit.select.clear]
"pmeta-a" [:paredit.select.parent]}}
:filter-list.input {"ctrl-n" [(:filter-list.input.move-selection 1)],
"ctrl-p" [(:filter-list.input.move-selection -1)]}
:- {:app ["ctrl-o" "ctrl-space" "pmeta-r"]
:editor ["pmeta-enter"]}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment