Skip to content
Browse files

add basic light table config

  • Loading branch information...
1 parent 75d1b47 commit f95d766a6408930dec45924aa5d1b42f329a396c @cldwalker committed Jan 21, 2014
Showing with 55 additions and 1 deletion.
  1. +27 −0 .light_table/user.behaviors
  2. +24 −0 .light_table/user.keymap
  3. +4 −1 README.markdown
View
27 .light_table/user.behaviors
@@ -0,0 +1,27 @@
+;; User behaviors
+;; -----------------------------
+;; Behaviors are stored as a set of diffs that are merged together
+;; to create the final set of functionality that makes up Light Table. You can
+;; modify these diffs to either add or subtract functionality.
+;;
+;; Behaviors are added to tags, objects with those tags then automatically gain
+;; whatever logic the behavior imparts. To see a list of user-level behaviors,
+;; start typing a word related to the functionality you want in between the square
+;; brackets (e.g. "theme").
+
+{:+ {
+ ;; The app tag is kind of like global scope. You assign behaviors that affect
+ ;; all of Light Table here
+ :app [(:lt.objs.style/set-skin "dark")]
+
+ ;; The editor tag is applied to all editors
+ :editor [:lt.objs.editor/no-wrap
+ (:lt.objs.style/set-theme "default")
+ (:lt.plugins.vim/activate-vim)]
+
+ ;; Here we can add behaviors to just clojure editors
+ :editor.clojure [(:lt.objs.langs.clj/print-length 1000)]}
+
+ ;; You can use the subtract key to remove behavior that may get added by
+ ;; another diff
+ :- {:app []}}
View
24 .light_table/user.keymap
@@ -0,0 +1,24 @@
+;; 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 {"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 "(")]
+ }}}
View
5 README.markdown
@@ -3,7 +3,7 @@ Description
These are the dot files for apps I use every day.
Among these apps are:
-
+
* bash: aliases, functions, completions
* vim: config and plugins
* vimperator: firefox plugin to make it vim-like, includes config and plugins
@@ -19,3 +19,6 @@ Install
Simply run `ruby install.rb` in this directory to symlink these files to
your home directory.
+
+For light table, you will need to additionally:
+`ln -s ~/.light_table/ ~/Library/Application\ Support/LightTable/settings`

0 comments on commit f95d766

Please sign in to comment.
Something went wrong with that request. Please try again.