Integration with Emacs


Basic Emacs integration with Factor requires the use of two executable files -- emacs and emacsclient, which act as a client/server pair. To start the server, run the emacs binary and execute M-x server-start or start emacs with the following line in your .emacs file:
(server-start)

On Windows, if you install Emacs to Program Files or Program Files (x86), Factor will automatically detect the path to emacsclient.exe. On Unix systems, make sure that emacsclient is in your path. To set the path manually, use the following snippet:
USE: editors.emacs "/my/crazy/bin/emacsclient" emacsclient-path set-global

If you would like a new window to open when you ask Factor to edit an object, put this in your .emacs file:
(setq server-window 'switch-to-buffer-other-frame)

To quickly scaffold a .emacs file, run the following code:
USE: tools.scaffold scaffold-emacs

Factor also comes with an environment, called FUEL, that turns Emacs into a rich, fully featured IDE for Factor, including debugging, a Factor listener, documentation browsing, stack effect inference, and more. To learn more, check out the fuel vocabulary.

See also
Editor integration