Skip to content

Instantly share code, notes, and snippets.

@skvggor
Created March 4, 2014 04:16
Show Gist options
  • Save skvggor/9340195 to your computer and use it in GitHub Desktop.
Save skvggor/9340195 to your computer and use it in GitHub Desktop.
Meu arquivo `user.behaviors` do LightTable IDE.
;; 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.plugins/load-js "recall.js" true)
(:lt.objs.style/set-skin "dark")]
;; The editor tag is applied to all editors
:editor [:lt.plugins.visible-whitespace/show-whitespace
:lt.objs.editor/wrap
(:lt.objs.style/set-theme "lesser-dark")
:lt.objs.editor/line-numbers
(:lt.objs.style/font-settings "Consolas" "13" "1.3")
:lt.objs.editor/highlight-current-line
:lt.objs.editor.file/remove-trailing-whitespace]
;; Here we can add behaviors to just clojure editors
:editor.clojure [(:lt.plugins.clojure/print-length 1000)]}
;; You can use the subtract key to remove behavior that may get added by
;; another diff
:- {
:app [:lt.objs.menu/create-menu
:lt.objs.menu/set-menu
:lt.objs.intro/show-intro]
:window [:lt.objs.menu/set-menu]}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment