Last active
January 2, 2016 15:49
-
-
Save fanannan/8326348 to your computer and use it in GitHub Desktop.
my user.keymap for lighttable 0.6.0 as of 2014-01-09
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
{:+ {:app { | |
;"pmeta-alt-]" [:tabset.next] | |
;"pmeta-alt-[" [:tabset.prev] | |
;"pmeta-alt-n" [:tabset.new] | |
;"pmeta-alt-w" [:tabset.close] | |
;"pmeta-shift-f" [:window.fullscreen] | |
"pmeta-alt-f" [:searcher.show] | |
"pmeta-f" [:find.fill-selection :find.show]} | |
:editor {"alt-w" [:editor.watch.watch-selection] | |
"alt-shift-w" [:editor.watch.unwatch] | |
"ctrl-right" [:paredit.grow.right] | |
"ctrl-shift-right" [:paredit.shrink.right] | |
"ctrl-left" [:paredit.grow.left] | |
"ctrl-shift-left" [:paredit.shrink.left] | |
"ctrl-up" [:paredit.select.parent] | |
"ctrl-down" [:paredit.select.clear] | |
"esc" [:find.clear :find.hide] | |
"ctrl-d" [:editor.doc.toggle] | |
"ctrl-/" [:toggle-comment-selection] | |
"ctrl-g" [:goto-line] | |
"ctrl-shift-e" [:clear-inline-results] | |
"ctrl-l" [:clear-console] | |
;"alt-shift-," [:editor.doc-start] | |
;"alt-shift-." [:editor.doc-end] | |
;"alt-m" [:editor.line-start-smart] | |
;;Real cheesey line duplicator | |
"ctrl-shift-d" [:editor.select-line | |
:editor.copy | |
:editor.selection.clear | |
:editor.new-line-indent | |
:editor.paste | |
:smart-indent-selection] | |
;;Eval the parent ( ... ) | |
"alt-enter" [(:paredit.select.parent "(") | |
:eval-editor-form | |
:paredit.select.clear] | |
;;Format the parent () | |
"alt-s" [(:paredit.select.parent "(") | |
:smart-indent-selection | |
:paredit.select.clear] | |
} | |
:editor.clj {"ctrl-i" [(:eval.custom | |
"(do | |
(require 'kibit.check) | |
(if-let [better (kibit.check/check-expr '__SELECTION__)] | |
(with-out-str | |
(clojure.pprint/write (:alt better) | |
:suppress-namespaces true | |
:dispatch clojure.pprint/code-dispatch)) | |
__SELECTION*__))" | |
{:result-type :replace :verbatim true})]}} | |
:editor.keys.normal {"esc" [:find.clear :find.hide]} | |
:find-bar {"enter" [:find.hide]} | |
:filter-list.input {"ctrl-n" [(:filter-list.input.move-selection 1)], | |
"ctrl-p" [(:filter-list.input.move-selection -1)]}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment