Merge branch 'emacs-mode' into lisp

db4
James Cash 2008-06-03 04:33:53 -04:00
commit 1f570c062a
1 changed files with 6 additions and 0 deletions

View File

@ -94,6 +94,10 @@
"SYMBOLS:"
))
(defun factor-indent-line ()
"Indent current line as Factor code"
(indent-line-to (+ (current-indentation) 4)))
(defun factor-mode ()
"A mode for editing programs written in the Factor programming language."
(interactive)
@ -107,6 +111,8 @@
(setq font-lock-defaults
'(factor-font-lock-keywords nil nil nil nil))
(set-syntax-table factor-mode-syntax-table)
(make-local-variable 'indent-line-function)
(setq indent-line-function 'factor-indent-line)
(run-hooks 'factor-mode-hook))
(add-to-list 'auto-mode-alist '("\\.factor\\'" . factor-mode))