On Jan 29, 2007, at 8:17 AM, Farhana Jabeen wrote:
Hello
Can any one help me how to configure emacs to do syntax
highlighting for nesc.
Thanks
Farhana Khan
There's an emacs file floating around somewhere that does this. I've
found that just telling Emacs that nesC is C code works pretty well.
There's a configuration line somewhere that's something like this:
setq auto-mode-alist
(append (list (cons "\\.cc$" 'c++-mode)
(cons "\\.C$" 'c++-mode)
(cons "\\.H$" 'c++-mode)
(cons "\\.c$" 'c-mode)
(cons "\\.nc$" 'c-mode)
(cons "\\.h$" 'c-mode)
(cons "\\.h$" 'c++-mode)
(cons "\\.cpp$" 'c++-mode)
(cons "\\.p$" 'pascal-mode)
(cons "\\.pl$" 'perl-mode)
(cons "[Mm]akefile" 'makefile-mode)
(cons "\\.mak$" 'makefile-mode)
(cons "\\.txt$" 'text-mode)
(cons "\\.ada$" 'ada-mode)
(cons "\\.idl$" 'c++-mode)
(cons "\\.tex$" 'latex-mode)
(cons "\\.scm$" 'scheme-mode)
(cons "\\.jj$" 'java-mode)
)
auto-mode-alist))
Note mine has the
(cons "\\.nc$" 'c-mode)
line.
Phil
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help