Getting Started

123 views
Skip to first unread message

Ari

unread,
Apr 8, 2015, 7:35:10 AM4/8/15
to light-table...@googlegroups.com
Hi,

I've recently started using LightTable and I'm enjoying it. But I do have a few usage/configuration questions I would appreciate help with, specifically:

  1. What is shortcut key, if it exists to jump to matching parentheses? If it doesn't exist can this be configured in the user key map?
  2. When I evaluate clojure code in the instarepl there are occasions where the new resulting value is prepended to a list of values. Other times the old value is cleared and the new value is displayed. Is there a way to set LightTable to do only the latter?
  3. I have python and javascript linters on the path, can I configure LightTable to use them? Are there plugins for that?

Thanks.

Best,

Ari

Magnus Rundberget

unread,
Apr 9, 2015, 1:58:38 AM4/9/15
to light-table...@googlegroups.com


On Wednesday, 8 April 2015 13:35:10 UTC+2, Ari wrote:
Hi,

I've recently started using LightTable and I'm enjoying it. But I do have a few usage/configuration questions I would appreciate help with, specifically:

  1. What is shortcut key, if it exists to jump to matching parentheses? If it doesn't exist can this be configured in the user key map?
 The Paredit plugin (which is installed by default provides the behavior you are looking for. You'll have to configure a shortcut for it yourself though.
- Ctrl+space and find "Settings: User keymap"

Add the shortcuts you find relevant for paredit. I have something like the following, you might wish to use another layout. (or you might want to install and use the emacs or vim plugin for predefined shortcut layouts)

;; Paredit
 [:editor "ctrl-alt-," :paredit.shrink.right]
 [:editor "ctrl-alt-l" :paredit.grow.left]
 [:editor "ctrl-alt-p" (:paredit.select.parent "(") :eval-editor-form :paredit.select.clear]
 [:editor "ctrl-alt-r" :paredit.shrink.right]
 [:editor "ctrl-alt-left" :paredit.move.down.backward]
 [:editor "ctrl-alt-right" :paredit.move.up.forward]
 [:editor "ctrl-alt-." :paredit.grow.right]
 [:editor "ctrl-alt-down" :paredit.move.down.forward]
 [:editor "ctrl-alt-up" :paredit.move.up.backward]
 [:editor "alt-s" (:paredit.select.parent "(") :smart-indent-selection :paredit.select.clear]
 [:editor "shift-alt-s" :paredit.select.parent]
 [:editor "ctrl-alt-u" :paredit.unwrap.parent]
 [:editor "ctrl-alt-b" :paredit.backspace]
 [:editor "ctrl-alt-d" :paredit.delete]



  1. When I evaluate clojure code in the instarepl there are occasions where the new resulting value is prepended to a list of values. Other times the old value is cleared and the new value is displayed. Is there a way to set LightTable to do only the latter?
Sorry can't help you here, sounds like a bug to me.

However if you wish to clear previous results explicitly you can add a shortcut for that:
[:app "cmd-shift-e" :clear-console :clear-inline-results] ;; clears both inline results and the console
 
  1. I have python and javascript linters on the path, can I configure LightTable to use them? Are there plugins for that?
There is a JSHint plugin which you can install through the plugin manager (ctrl+space, "Plugins: Show plugin manager"
Don't know about Python though.

Thanks.

Best,

Ari

Reply all
Reply to author
Forward
0 new messages