Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

some basic sane paredit lighttable keys

  • Loading branch information...
commit 8e185bac33d3f86db0083fd8b862b219292863a9 1 parent f95d766
@cldwalker authored
Showing with 18 additions and 5 deletions.
  1. +18 −5 .light_table/user.keymap
View
23 .light_table/user.keymap
@@ -10,15 +10,28 @@
;; 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 {"alt-tab" [:tabset.next]
"cmd-k" [:clear-inline-results]}
:editor {"alt-w" [:editor.watch.watch-selection]
"alt-shift-w" [:editor.watch.unwatch]
- "cmd-. =" [:paredit.select.parent :smart-indent-selection :paredit.select.clear]
- "cmd-. l" [:paredit.grow.right]
- "cmd-. h" [:paredit.shrink.left]
;; buggy?
;; "cmd.- l" [(:editor.open-pair "(")]
- }}}
+
+ "cmd-=" [:paredit.select.parent :smart-indent-selection :paredit.select.clear]
+ ;;Eval the parent ( ... )
+ "alt-enter" [(:paredit.select.parent "(")
+ :eval-editor-form
+ :paredit.select.clear]
+
+ ;;Select the parent expression, whether that's [], {}, or ()
+ "cmd-v" [:paredit.select.parent]
+
+ }
+ ;; thanks to https://groups.google.com/forum/#!topic/light-table-discussion/BIyWHnRcoWc
+ :editor.keys.vim.normal {">" [:paredit.grow.right]
+ "<" [:paredit.shrink.right]
+ "alt-shift-." [:paredit.shrink.left]
+ "alt-shift-," [:paredit.grow.left]
+ "cmd-;" [:toggle-comment-selection]}}}
+
Please sign in to comment.
Something went wrong with that request. Please try again.