Associate editor syntax with behaviors

50 views
Skip to first unread message

carlos antonio neira bustos

unread,
May 4, 2016, 8:56:07 AM5/4/16
to Light Table Discussion
Hi All,

Is it currently possible to associate the language syntax of a file to a group of plugins? sort of emacs add-hook ?. 
For example I'm editing a clj/cljs file and I want every time that I visit a file of this type enable paredit plugin behaviors.   

Magnus Rundberget

unread,
May 7, 2016, 7:11:58 AM5/7/16
to Light Table Discussion
Short answer is yes.

You can configure that stuff in your user.behaviors (Shortcut in the command menu is "Settings: User behavior")
You can also configure commands (basically keyboard shortcuts) per editor type as well (Settings: User keymap)

The paredit plugin doesn't expose any behaviors, it's basically just exposing a set of commands so it's not quite as configurable as many other plugins.
For better paredit support for clj/cljs you might want to have a look at the https://github.com/rundis/parembrace plugin

typically every editor has tags which you can use to configure
- custom keymapping
- turning behaviors on/off

let me know if you have any particular problems and we'll try to help you out.

cheers
-magnus

carlos antonio neira bustos

unread,
May 7, 2016, 10:10:40 AM5/7/16
to Light Table Discussion
Thank you very much!. I'm starting to learn how  LT has been coded. I'll take a look at parembrace.
Reply all
Reply to author
Forward
0 new messages