factor/basis/editors/emacs/emacs-docs.factor

27 lines
1.6 KiB
Factor
Raw Normal View History

2007-09-20 18:09:08 -04:00
USING: help help.syntax help.markup ;
2008-11-28 00:28:32 -05:00
IN: editors.emacs
2007-09-20 18:09:08 -04:00
2008-11-28 00:28:32 -05:00
ARTICLE: "editors.emacs" "Integration with Emacs"
"Basic Emacs integration with Factor requires the use of two executable files -- " { $snippet "emacs" } " and " { $snippet "emacsclient" } ", which act as a client/server pair. To start the server, run the " { $snippet "emacs" } " binary and execute " { $snippet "M-x server-start" } " or start " { $snippet "emacs" } " with the following line in your " { $snippet ".emacs" } " file:"
2007-09-20 18:09:08 -04:00
{ $code "(server-start)" }
"On Windows, if you install Emacs to " { $snippet "Program Files" } " or " { $snippet "Program Files (x86)" } ", Factor will automatically detect the path to " { $snippet "emacsclient.exe" } ". On Unix systems, make sure that " { $snippet "emacsclient" } " is in your path. To set the path manually, use the following snippet:"
2015-04-01 18:56:43 -04:00
{ $code "USE: editors.emacs"
2009-04-20 22:17:18 -04:00
"\"/my/crazy/bin/emacsclient\" emacsclient-path set-global"
}
2008-11-28 00:28:32 -05:00
"If you would like a new window to open when you ask Factor to edit an object, put this in your " { $snippet ".emacs" } " file:"
2007-09-20 18:09:08 -04:00
{ $code "(setq server-window 'switch-to-buffer-other-frame)" }
2008-11-28 00:28:32 -05:00
2009-04-20 22:17:18 -04:00
"To quickly scaffold a " { $snippet ".emacs" } " file, run the following code:"
{ $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 " { $vocab-link "fuel" } " vocabulary."
2009-04-20 22:17:18 -04:00
{ $see-also "editor" }
;
ABOUT: "editors.emacs"