Editor integration - Factor Documentation (original) (raw)
Factor development is best done with one of the supported editors; this allows you to quickly jump to definitions from the Factor environment. edit ( object -- )
Depending on the editor you are using, you must load one of the child vocabularies of the editors vocabulary, for example editors.emacs:
USE: editors.emacs
If you intend to always use the same editor, it helps to have it load during stage 2 bootstrap. Place the code to load and possibly configure it in the Bootstrap initialization file.
Editor integration vocabularies store an object in a global variable when loaded: editor-class
If a syntax error was thrown while loading a source file, you can jump to the location of the error in your editor: :edit ( -- )
If your favourite editor is missing, you can add support for it. A tutorial is available at Creating an editor integration.