Richard,

We have had a VIm mode for X10 that is based on the VIm Scala mode in our
repository for a while now.  I'm sure the Emacs mode can be included as
well.

If you open a JIRA for this and attach your changes as a standalone set
of .el files that we could import into the repository, we'll do so.
It may be easier to create an x10-mode script that simply includes
scala-mode and modifies it appropriately.
I don't speak Emacs, so cannot verify these, but I'm sure with the help
of Russel and some others on the core team who *do* use Emacs we could
get this into the distro.
        Igor

Richard Gomes <rgomes1...@yahoo.co.uk> wrote on 11/05/2010 09:26:56 AM:

> 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 :)
-- 
Igor Peshansky  (note the spelling change!)
IBM T.J. Watson Research Center
X10: Parallel Productivity and Performance (http://x10-lang.org/)
XJ: No More Pain for XML's Gain (http://www.research.ibm.com/xj/)
"I hear and I forget.  I see and I remember.  I do and I understand" -- 
Xun Zi


------------------------------------------------------------------------------
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