Skip to content

Instantly share code, notes, and snippets.

@r9y9
Created August 26, 2014 01:34
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 r9y9/acef21377392b1c7db3f to your computer and use it in GitHub Desktop.
Save r9y9/acef21377392b1c7db3f to your computer and use it in GitHub Desktop.
user behaviors of LightTable
;; 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")]
:app [(:lt.objs.langs.julia/julia-path "/usr/local/bin/julia")]
;; The editor tag is applied to all editors
:editor [:lt.objs.editor/no-wrap
(:lt.objs.style/set-theme "default")
(:lt.objs.editor/tab-settings false 4 4)]
:editor [(:lt.plugins.emacs/activate-emacs)
(:lt.objs.style/set-theme "default")
(:lt.objs.style/font-settings "Ricty" 11 1)]
:editor.julia [(:lt.objs.editor/tab-settings false 4 4)]
;; 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 []}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment