Just sharing ideas with the group.

Some tools for Scala would easily be adapted for X10.

I've installed scala-mode on Emacs by downloading the .el files from
http://lampsvn.epfl.ch/svn-repos/scala/scala-tool-support/trunk/src/emacs/

I've also installed the code completion stuff, which is very well 
explained in this article:
http://www.scala-lang.org/node/354

I added two lines to scala-mode-auto.el which makes Emacs understand 
that Scala syntax coloring can be applied to .X10 files.

     (add-to-list 'auto-mode-alist '("\\.x10\\'" . scala-mode))
     (modify-coding-system-alist 'file "\\.x10$"     'utf-8)

That's it!
Now you can have a pretty good environment if you prefer prefer (or 
need!) command line tools.


Just in case you never extended Emacs configuration.
This is my .emacs :

     ;; scala mode
     (add-to-list 'load-path

"/opt/emacs.d/scala-mode")

     (require 'scala-mode-auto)

     ;; scala snippets
     (setq yas/my-directory

"/opt/emacs.d/scala-mode/contrib/yasnippet/snippets")

     (yas/load-directory yas/my-directory)
     (add-hook 'scala-mode-hook '(lambda () (yas/minor-mode-on) ))



==> Adjust paths to your local settings.


Have fun :)

-- 
Richard Gomes
M: +44(77)9955-6813
http://tinyurl.com/frgomes
twitter: frgomes

JQuantLib is a library for Quantitative Finance written in Java.
http://www.jquantlib.org/
twitter: jquantlib

------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to