Arc Forumnew | comments | leaders | submitlogin
5 points by awm 6175 days ago | link | parent

I've taken a stab at syntax highlighting based on scheme.el: http://zardoz.net/arc.el. Rudimentary so far, but gets most of the definition and control keywords.

Add to your .emacs:

(setq auto-mode-alist (append '(("\\.arc$" . arc-mode)) auto-mode-alist))



3 points by comatose_kid 6174 days ago | link

Thanks. Incidentally, your .emacs advice didn't work for me (I'm on emacs 23.0.50.2 if that matters), but this did:

(autoload 'arc-mode "arc" "Arc mode." t)

(add-to-list 'auto-mode-alist '("\\.arc$" . arc-mode))

-----

2 points by olifante 6174 days ago | link

The "add-to-list" line for some reason is not enough to automatically activate the arc-mode for *.arc files, although I can activate it manually by doing M-x arc-mode.

By adding a variation of your snippet to my .emacs, I got arc-mode to activate automatically:

(add-to-list 'load-path "~/arc0") (autoload 'arc-mode "arc" "Arc mode." t) (setq auto-mode-alist (append '(("\\.arc$" . arc-mode)) auto-mode-alist))

-----

1 point by olifante 6174 days ago | link

Unfortunately it doesn't work for me. I get the following error: File mode specification error: (void-function arc-mode)

-----

1 point by olifante 6174 days ago | link

btw, I'm using Emacs.app 23.0.0

-----

1 point by olifante 6174 days ago | link

Solved.

-----

1 point by mnemonicsloth 6174 days ago | link

Shame on you and your domain. I would've been happy to forget that.

-----