Labs/Bespin/Settings

From MozillaWiki
< Labs‎ | Bespin
Revision as of 07:35, 26 March 2009 by Dalmaer (talk | contribs)
Jump to navigation Jump to search

There are many user settings that you can tweak, to change the experience of using Bespin. Plugins and you yourself in your config.js can add new ones, but here is a list of some of the most used (please feel free to add more!):

(NOTE: Check out info on configuration integration here)

autocomplete

Autocomplete is a weird experiment where the command line automatically completes the command as soon as it is worked out. This may go away soon.

autoconfig

If you turn autoconfig on, when the editor loads it will look up BespinSettings/config.js and will load it up.

autoindent

With autoindent turned on, when you hit RETURN you will placed at the same level of indentation. If it is off, it will put you at the first column on the next line.

collaborate

This is a setting that turns on collaboration mode, and will start sending back events to the server.

cursorblink

The cursor blink kicks in every 250 milliseconds. Feel free to change it here if you really prefer something else. The side effect is that a canvas refresh happens then.

fontsize

What fontsize do you fancy? default is 10. We need to add the name of font too.

highlightline

If you set highlightline on, the line that your cursor is on will be a different color.

keybindings

There are keybinding modes. Right now you can just say "set keybindings emacs" to give you those key bindings. In the future we can have vi mode etc.

language

Usage: set language auto | [language]

By default the syntax setting is set to "auto". With this on, when you load a file, the extension will be checked and syntax highlighting will be used based on that extension (e.g loading foo.html will turn on the highlighting registered to the HTML syntax highlighter).

To turn off syntax highlighting, "set language off".

To force a particular setting, manually do something like "set syntax js". You shouldn't have to do this really.

smartmove

When set to on, spaces that add up to your tab setting will be skipped around (e.g. if tabsize == 4, then it will jump 4 at a time).

strictlines

With strictlines mode on, when you click on a line that is past the end of the current line, the cursor sticks to the last character. If you arrow right, it will go to the first character on the next line. If you then arrow left, it will take you back to the last line.

With strictlines mode off, you can click anywhere, and can't move up and down lines that way. Ben prefers off, Dion prefers on :)

tabsize

How many spaces do you want for your tabs? Default is 4. Dion prefers less :)

tabmode

Do you want to use real tabs, or would you prefer to use spaces (tied to tabsize above). To use tabs, "set tabmode tabs".

tabshowspace

If you set this, the tabs in your document (real tabs) will show up off color so you can see exactly which is tab space and which is space space.

tabarrow

If this is turned off (set tabarrow off) then the little arrow that shows that a tab is in play isn't rendered.