FUEL: Use better defaults for factor's binary and image file.

db4
Jose A. Ortega Ruiz 2009-01-12 10:35:59 +01:00
parent fb98eaf990
commit 093c615dfa
4 changed files with 15 additions and 4 deletions

View File

@ -1,2 +1 @@
Jose Antonio Ortega Ruiz
Eduardo Cavazos

View File

@ -41,6 +41,12 @@ beast.
To start the listener, try M-x run-factor.
By default, FUEL will try to use the binary and image files in the
factor installation directory. You can customize them with:
(setq fuel-listener-factor-binary <full path to factor>)
(setq fuel-listener-factor-image <full path to factor image>)
Many aspects of the environment can be customized:
M-x customize-group fuel will show you how many.

View File

@ -8,7 +8,11 @@
;;; Code:
(add-to-list 'load-path (file-name-directory load-file-name))
(setq fuel-factor-fuel-dir (file-name-directory load-file-name))
(setq fuel-factor-root-dir (expand-file-name "../../" fuel-factor-fuel-dir))
(add-to-list 'load-path fuel-factor-fuel-dir)
(add-to-list 'auto-mode-alist '("\\.factor\\'" . factor-mode))
(autoload 'factor-mode "factor-mode.el"

View File

@ -30,12 +30,14 @@
"Interacting with a Factor listener inside Emacs."
:group 'fuel)
(defcustom fuel-listener-factor-binary "~/factor/factor"
(defcustom fuel-listener-factor-binary
(expand-file-name "factor" fuel-factor-root-dir)
"Full path to the factor executable to use when starting a listener."
:type '(file :must-match t)
:group 'fuel-listener)
(defcustom fuel-listener-factor-image "~/factor/factor.image"
(defcustom fuel-listener-factor-image
(expand-file-name "factor.image" fuel-factor-root-dir)
"Full path to the factor image to use when starting a listener."
:type '(file :must-match t)
:group 'fuel-listener)