FUEL: Customization variable that controls whether fuel-mode is loaded automatically.

db4
Björn Lindqvist 2013-08-06 13:43:39 +02:00 committed by John Benediktsson
parent 6d88ab71b5
commit 402a2f5ac1
2 changed files with 17 additions and 2 deletions

View File

@ -52,6 +52,20 @@ source/docs/tests file. When set to false, you'll be asked only once."
:safe 'integerp
:group 'factor)
(defcustom factor-mode-use-fuel t
"Whether to use the full FUEL facilities in factor mode.
Set this variable to nil if you just want to use Emacs as the
external editor of your Factor environment, e.g., by putting
these lines in your .emacs:
(add-to-list 'load-path \"/path/to/factor/misc/fuel\")
(setq factor-mode-use-fuel nil)
(require 'factor-mode)
"
:type 'boolean
:group 'factor)
;;; Faces:
@ -939,7 +953,9 @@ With prefix, non-existing files will be created."
(setq-local indent-tabs-mode nil)
(setq-local beginning-of-defun-function 'factor-beginning-of-defun)
(setq-local end-of-defun-function 'factor-end-of-defun))
(setq-local end-of-defun-function 'factor-end-of-defun)
;; Load fuel-mode too if factor-mode-use-fuel is t.
(when factor-mode-use-fuel (require 'fuel-mode) (fuel-mode)))
;;;###autoload
(add-to-list 'auto-mode-alist '("\\.factor\\'" . factor-mode))

View File

@ -230,7 +230,6 @@ interacting with a factor listener is at your disposal.
("Other Factor buffer other frame" "\C-x5s"
fuel-switch-to-buffer-other-frame)))
(add-hook 'factor-mode-hook (lambda () (fuel-mode 1)))
(provide 'fuel-mode)