Skip to content

Instantly share code, notes, and snippets.

@existentialmutt
Created October 4, 2014 04:30
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 existentialmutt/a30369c84e63753ed14a to your computer and use it in GitHub Desktop.
Save existentialmutt/a30369c84e63753ed14a to your computer and use it in GitHub Desktop.
Light Table User Behaviors
;; 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")
:lt.objs.sidebar.workspace/workspace.open-on-start
:lt.objs.metrics/disable-metrics
(:lt.objs.console/set-console-limit 500)
]
;; The editor tag is applied to all editors
:editor [:lt.objs.editor/no-wrap
(:lt.objs.style/set-theme "default")
:lt.objs.editor/line-numbers
(:lt.objs.editor/tab-settings false 4 2)
:lt.plugins.vim/activate-vim
;; :lt.objs.editor/wrap
;; :lt.objs.editor/highlight-current-line
(:lt.objs.style/font-settings "Menlo" 11 1.25)
(:lt.plugins.vim/map-keys { ">" ":ltexec paredit.grow.right"
"<" ":ltexec paredit.shrink.right"})
;; (:lt.objs.langs.ruby/ruby-exe "/Users/rrosen/.rvm/rubies/ruby-2.0.0-p247/bin/ruby")
;; :lt.objs.langs.ruby/use-rvm
]
;; Here we can add behaviors to just clojure editors
:editor.clojure [(:lt.objs.langs.clj/print-length 1000)]}
:editor.ruby [
:lt.objs.langs.ruby/use-rbenv
]
;; You can use the subtract key to remove behavior that may get added by
;; another diff
:- {:app [:lt.objs.intro/show-intro]
:editor [
]}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment