On Fri, Oct 08, 2004 at 02:05:33PM +0800, Neil Santos wrote: [...]
I only know enough LISP to be able to edit my .emacs file (and then some); I'm nothing near the level of expertise needed to write an Emacs language mode of this scale.
If you only want to fontify some more keywords, just search for the keywords list in the existing modes and add yours. You do not have to know any Elisp for that :-).
Oh, no; I'd also like proper indentation. Hitting C-q TAB gets rather old, rather quickly.
I use the following kludge in my .emacs. It doesn't fix the indentation rules, but at least makes it feasible to correct it manually.
(add-hook 'pascal-mode-hook (lambda () (local-unset-key ";") (local-unset-key ".") (local-unset-key ":") (local-unset-key "=") (local-unset-key "#") (defun electric-pascal-terminate-line () "Terminate line and indent next line." (interactive) (delete-horizontal-space) (newline) (pascal-indent-line))))
Hope this helps.
Emil Jerabek