Emacs IntegrationFactor ships with FUEL, which is a powerful Emacs mode which communicates with a runing Factor instance and provides semantic editing and navigation features. Quickstart for Windows EmacsDownload emacs-w32 and install it to "\Program Files\Emacs" or "\Program Files(x86)\Emacs". Factor will autodetect it from these locations. Make a .emacs with your path to FUEL: ;;; Factor (load-file "d:/Program Files/factor/misc/fuel/fu.el") Run Factor, and copy the .emacs file to both USE: editors.emacsYour emacs should now be running, and commands like Setup emacsThese instructions should be readily adaptable for other operating systems; in its current form it pertains to Windows XP. Add the following to your ;;; Factor (load-file "d:/Program Files/factor/misc/fuel/fu.el") To set the executable and image path for factor use M-x customize-group fuel, then select the Fuel Listener group. Remember to save the changes by selecting "Save for Future Sessions" when finished. Be sure to change the paths appropriately of course. To start the listener use M-x run-factor. FUEL, the Factor mode for emacs, has many advanced features. Consult In Win32 environment, if you encounter "M-x run-factor" terminated with "Prompt not found", you should indicate "<FACTOR-DIR>/factor.com" as your "fuel-listener-factor-binary". ; ...additional win32 fuel setting: (setq fuel-listener-factor-binary "d:/factor/factor.com") Setup FactorFinally you need to inform Factor that you want to use Emacs as your editor. Create or modify the USE: io.pathnames home .and you can even have factor create a blank file in the proper location with USE: io.directories home "factor-rc" append-path touch-file Edit that file and add something like: USING: namespaces editors.emacs ; "d:/Program Files/emacs-22.3/bin/emacs.exe" \ emacsclient-path set-global again, change the path appropriately. Per a recent IRC log, you will probably also need to edit You should comment out the call to At this point Factor should now be integrated with emacs. Invoke the following in the listener to test: \ + edit Semantic Editing and NavigationFUEL includes many useful features for editing Factor code. Press FUEL CheatsheetYou'll find here a small sheet (in pdf and OpenOffice) for using FUEL inside Emacs : This revision created on Sat, 20 Feb 2010 22:31:16 by metaperl (more beautification) |
|
|
All content is © 2008-2010 by its respective authors. By adding content to this wiki, you agree to release it under the BSD license. |
|