Skip to content

Instantly share code, notes, and snippets.

@robjens
Created May 22, 2016 10:31
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 robjens/85f4f1ba5f324070752bae95d48403ef to your computer and use it in GitHub Desktop.
Save robjens/85f4f1ba5f324070752bae95d48403ef to your computer and use it in GitHub Desktop.
Lighttable config
;; User behaviors
;; -----------------------------
;; To subtract a behavior, prefix the name with '-' e.g.
;; https://github.com/LightTable/LightTable/blob/master/doc/behavior-and-keymap-configuration.md.
[
;; The app tag is kind of like global scope. You assign behaviors that affect
;; all of Light Table to it.
[:app :lt.objs.style/set-skin "dark"]
[:app :lt.objs.plugins/load-js "user_compiled.js"]
;; BUG: https://github.com/LightTable/LightTable/issues/1928 ????
;; Used to be [:app :-lt.objs.settings/pair-keymap-diffs]
;; Auto-close characters e.g. '{[("'
[:editor :lt.objs.editor/autoclose-brackets]
;; The editor tag is applied to all editors
[:editor :lt.objs.editor/no-wrap]
[:editor :lt.objs.style/set-theme "ibdknox"]
;; Automatically check for updates
[:app :lt.objs.deploy/check-version]
[:editor :lt.plugins.reflow/set-width 120]
;; Highlight current cursor active line in editor
[:editor :lt.objs.editor/highlight-current-line]
;; Here we can add behaviors to just clojure editors
[:editor.clojure :lt.plugins.clojure/print-length 1000]
;; Behaviors specific to a user-defined object
;;[:user.hello :lt.plugins.user/on-close-destroy]
;; Do not show splash intro
[:app :-lt.objs.intro/show-intro]
;; Show line numbers
[:editor :lt.objs.editor/line-numbers]
;; Customize font
[:app :lt.objs.style/font-settings "Ubuntu Mono" "10" "1.2"]
;; Tab settings: Use real tabs, tab size in spaces, spaces per indent
;; [:editor :lt.objs.editor/tab-settings false 2 2]
]
;; User keymap
;; -----------------------------
[
;; schemaspy ^^
[:editor "alt-s s" :add-browser-tab :tabs.move-new-tabset
:browser.url-bar.focus (:browser.url-bar.navigate! "file:///C:/usr/output/relationships.html")]
[:editor "alt-w" :editor.watch.watch-selection]
[:editor "alt-shift-w" :editor.watch.unwatch]
[:editor "ctrl-up" :editor.sublime.swapLineUp]
[:editor "ctrl-down" :editor.sublime.swapLineDown]
[:editor "ctrl-i" :clear-inline-results]
[:editor "ctrl-shift-q" :editor.disconnect-clients]
[:editor "ctrl-," :workspace.show]
[:editor "ctrl-." :show-connect]
[:app "ctrl-shift-k" :editor.disconnect-clients :clear-console :clear-inline-results :eval-editor]
[:app "f3" :searcher.next]
[:app "f6" :behaviors.modify-user]
[:app "f7" :keymap.modify-user]
[:app "f12" :dev-inspector]
[:editor "ctrl-shift-up" :editor.sublime.selectLinesUpward]
[:editor "ctrl-shift-down" :editor.sublime.selectLinesDownward]
[:editor "ctrl-;" :toggle-comment-selection]
[:editor "ctrl-/" :toggle-console]
[:editor "ctrl-shift-/" :clear-console]
[:editor "ctrl-e" :set-syntax]
[:app "ctrl-`" :plugin-manager.show]
[:app "alt-q" :lt.plugins.reflow/reflow]
;; [:editor "ctrl-a" :editor.line-start]
;; [:editor "ctrl-x ," :editor.transpose-chars]
;; To subtract a keybinding, prefix the key with '-' e.g.
;; [:app "-ctrl-shift-d" :docs.search.show]
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment