-
Notifications
You must be signed in to change notification settings - Fork 1
GooAndEmacs
Bruce Mitchener edited this page Jan 6, 2014
·
1 revision
To load the goo mode with font-lock support, you probably want to add the following to your .emacs:
(load "/path_to_goo/emacs/goo") (setq auto-mode-alist (cons `("\\.goo\\'" . goo-mode) auto-mode-alist))
To run goo from within emacs, allowing you to use C-c C-e to execute the last expression and other such fun, you probably want to add the following to your .emacs:
(autoload 'run-goo "/path_to_goo/emacs/goo-shell" "Run a goo shell." t) (setq auto-mode-alist (cons '("\\.goo\\'" . goo-mode) auto-mode-alist)) (setq goo-program-name "/path_to_goo/bin/g2c")
Where path_to_goo will most likely be the same thing you set GOO_ROOT to if you were a responsible individual. 'Make sure that your emacs session is exposed to environment settings for both GOO_ROOT and GOO_BUILD_ROOT!'
To start a goo session, remember to hit M-x run-goo.
Also included in the emacs diretory is James' fancy font-lock mode with nested shading. I don't think the current version of our wiki will let us embed images though, so you'll have to imagine what fun it may bring.