This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Ensime stops on java files..

5 replies
StephaneLD
Joined: 2008-08-28,
User offline. Last seen 4 years 9 weeks ago.

Hi!

I am new to Emacs and have done the switch for the awesome ENSIME
mode.
However, when I use the Control + left mouse navigation, as soon as it
leads me to a java file, I'm no longer in the ENSIME mode.. and
productivity stops :(

If anyone can help me with that.. I'll dedicate him my next coffee!

Stephane

Aemon Cannon
Joined: 2010-03-21,
User offline. Last seen 1 year 24 weeks ago.
Re: Ensime stops on java files..

I need to add this to the docs, but try just adding ensime to the
auto-mode list for java files. This will also give you java error
highlighting.

On Saturday, February 26, 2011, sledorze wrote:
> Hi!
>
> I am new to Emacs and have done the switch for the awesome ENSIME
> mode.
> However, when I use the Control + left mouse navigation, as soon as it
> leads me to a java file, I'm no longer in the ENSIME mode.. and
> productivity stops :(
>
> If anyone can help me with that.. I'll dedicate him my next coffee!
>
> Stephane
>
>

StephaneLD
Joined: 2008-08-28,
User offline. Last seen 4 years 9 weeks ago.
Re: Ensime stops on java files..

That's where my knowledge stops.
I'll search in internet land, however, some help would reduce the
burden :)

On 26 fév, 21:55, Aemon Cannon wrote:
> I need to add this to the docs, but try just adding ensime to the
> auto-mode list for java files. This will also give you java error
> highlighting.
>
>
>
>
>
>
>
> On Saturday, February 26, 2011, sledorze wrote:
> > Hi!
>
> > I am new to Emacs and have done the switch for the awesome ENSIME
> > mode.
> > However, when I use the Control + left mouse navigation, as soon as it
> > leads me to a java file, I'm no longer in the ENSIME mode.. and
> > productivity stops :(
>
> > If anyone can help me with that.. I'll dedicate him my next coffee!
>
> > Stephane

StephaneLD
Joined: 2008-08-28,
User offline. Last seen 4 years 9 weeks ago.
Re: Ensime stops on java files..

I'v done it that way near the scala ones:
(add-to-list 'auto-mode-alist '("\\.java\\'" . scala-mode))
(modify-coding-system-alist 'file "\\.java$" 'utf-8)

I'm in the ensime mode;
however I'm no more connected..
(I am navigating to java projects outside my root project)

How to fix that?

Thanks for your help!

Stephane

On 26 fév, 22:04, sledorze wrote:
> That's where my knowledge stops.
> I'll search in internet land, however, some help would reduce the
> burden :)
>
> On 26 fév, 21:55, Aemon Cannon wrote:
>
>
>
>
>
>
>
> > I need to add this to the docs, but try just adding ensime to the
> > auto-mode list for java files. This will also give you java error
> > highlighting.
>
> > On Saturday, February 26, 2011, sledorze wrote:
> > > Hi!
>
> > > I am new to Emacs and have done the switch for the awesome ENSIME
> > > mode.
> > > However, when I use the Control + left mouse navigation, as soon as it
> > > leads me to a java file, I'm no longer in the ENSIME mode.. and
> > > productivity stops :(
>
> > > If anyone can help me with that.. I'll dedicate him my next coffee!
>
> > > Stephane

Aemon Cannon
Joined: 2010-03-21,
User offline. Last seen 1 year 24 weeks ago.
Re: Ensime stops on java files..

Ah, that's the problem. Ensime does not currently support external
projects. Sorry about that!

On Saturday, February 26, 2011, sledorze wrote:
> I'v done it that way near the scala ones:
> (add-to-list 'auto-mode-alist '("\\.java\\'" . scala-mode))
> (modify-coding-system-alist 'file "\\.java$"     'utf-8)
>
> I'm in the ensime mode;
> however I'm no more connected..
> (I am navigating to java projects outside my root project)
>
> How to fix that?
>
> Thanks for your help!
>
> Stephane
>
> On 26 fév, 22:04, sledorze wrote:
>> That's where my knowledge stops.
>> I'll search in internet land, however, some help would reduce the
>> burden :)
>>
>> On 26 fév, 21:55, Aemon Cannon wrote:
>>
>>
>>
>>
>>
>>
>>
>> > I need to add this to the docs, but try just adding ensime to the
>> > auto-mode list for java files. This will also give you java error
>> > highlighting.
>>
>> > On Saturday, February 26, 2011, sledorze wrote:
>> > > Hi!
>>
>> > > I am new to Emacs and have done the switch for the awesome ENSIME
>> > > mode.
>> > > However, when I use the Control + left mouse navigation, as soon as it
>> > > leads me to a java file, I'm no longer in the ENSIME mode.. and
>> > > productivity stops :(
>>
>> > > If anyone can help me with that.. I'll dedicate him my next coffee!
>>
>> > > Stephane

StephaneLD
Joined: 2008-08-28,
User offline. Last seen 4 years 9 weeks ago.
Re: Ensime stops on java files..
Thanks for letting us know.. :)

On Sun, Feb 27, 2011 at 1:39 AM, Aemon Cannon <aemoncannon [at] gmail [dot] com> wrote:
Ah, that's the problem. Ensime does not currently support external
projects. Sorry about that!

On Saturday, February 26, 2011, sledorze <stephane [dot] ledorze [at] gmail [dot] com> wrote:
> I'v done it that way near the scala ones:
> (add-to-list 'auto-mode-alist '("\\.java\\'" . scala-mode))
> (modify-coding-system-alist 'file "\\.java$"     'utf-8)
>
> I'm in the ensime mode;
> however I'm no more connected..
> (I am navigating to java projects outside my root project)
>
> How to fix that?
>
> Thanks for your help!
>
> Stephane
>
> On 26 fév, 22:04, sledorze <stephane [dot] ledo [dot] [dot] [dot] [at] gmail [dot] com> wrote:
>> That's where my knowledge stops.
>> I'll search in internet land, however, some help would reduce the
>> burden :)
>>
>> On 26 fév, 21:55, Aemon Cannon <aemoncan [dot] [dot] [dot] [at] gmail [dot] com> wrote:
>>
>>
>>
>>
>>
>>
>>
>> > I need to add this to the docs, but try just adding ensime to the
>> > auto-mode list for java files. This will also give you java error
>> > highlighting.
>>
>> > On Saturday, February 26, 2011, sledorze <stephane [dot] ledo [dot] [dot] [dot] [at] gmail [dot] com> wrote:
>> > > Hi!
>>
>> > > I am new to Emacs and have done the switch for the awesome ENSIME
>> > > mode.
>> > > However, when I use the Control + left mouse navigation, as soon as it
>> > > leads me to a java file, I'm no longer in the ENSIME mode.. and
>> > > productivity stops :(
>>
>> > > If anyone can help me with that.. I'll dedicate him my next coffee!
>>
>> > > Stephane



--
Stéphane Le Dorze
Tel: +33 (0) 6 08  76 70 15

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland