On Wed, 9 Jul 2003, Mads Bondo Dydensborg wrote:

> On Tue, 8 Jul 2003, Elaine Cheong wrote:
>
> > Has anyone configured emacs or xemacs to do syntax highlighting for nesC
> > (perhaps based on cc-mode)?  If so, could I take a look at your .emacs
> > file or associated files?
>
> I have this, if anyone have something better, feel free to yell.
>
> ------------
> ;;; necs.el --- necs mode

It was suggested to me oflist that I also post instructions on how to get
emacs to actually use this file. Although that is slightly off topic (I
guess) apparently many people use Cygwin and are not familiar with emacs
from other contexts.

The emacs file I previously posted I have placed in /home/madsdyd/.lib/emacs/nesc.el
and then I have the following in my .emacs

------------
;;; Append to the loadpath

(setq myhome (getenv "HOME") )
(setq load-path (append
                 (list
                  (concat myhome "/.lib/emacs" )
                  )
                 load-path
                 )
      )

(autoload 'nesc-mode "nesc"
 "Major mode for editing Nesc code." t)
(setq auto-mode-alist (cons '( "\\.nc\\'" . nesc-mode ) auto-mode-alist))
------------
So, check your $HOME variable (echo $HOME in a cygwin console) and put
the file in $HOME/.lib/emacs or similar - just remember to edit the
loadpath (as described above) appropiately.

Mads

-- 
+----------------------------------------------------------------------+
|  Mads Bondo Dydensborg.             http://www.diku.dk/users/madsdyd |
|  +45 35 32 14 18                                                     |
+----------------------------------------------------------------------+
_______________________________________________
Tinyos-users mailing list
[EMAIL PROTECTED]
http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-users

Reply via email to