help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scala with Emacs


From: Thorsten Jolitz
Subject: Re: Scala with Emacs
Date: Fri, 04 Oct 2013 15:36:13 +0200
User-agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.3 (gnu/linux)

address@hidden writes:

> On Friday, October 4, 2013 2:26:17 AM UTC-4, Thorsten Jolitz wrote:
>> address@hidden writes:
>>
>>
>>
>> Hi,
>>
>>
>>
>> > This is the major mode that I want to
>>
>> > use: https://github.com/hvesalai/scala-mode2
>>
>>
>>
>> look here
>>
>>
>>
>> ,----------------------------------------
>>
>> | https://github.com/hvesalai/scala-mode2
>>
>> `----------------------------------------
>>
>>
>>
>> for detailled installation instruction.
>>
>>
>>
>> Maybe have a look at ENSIME
>>
>>
>>
>> ,--------------------------------------
>>
>> | https://github.com/aemoncannon/ensime
>>
>> `--------------------------------------
>>
>>
>>
>> too, which is based on scala-mode2.
>>
>>
>>
>> --
>>
>> cheers,
>>
>> Thorsten
>
> Thorsten,
>
> I read the README file but I do not understand how to edit the .emacs file. I
> do not even know where this file is or how to open it. Once open, where in the
> file do I add the code?
>
> Thanks For your reply,

In the tutorial I see this:

"Add the following to your emacs config (.emacs, init.el, etc), if such a
definition already exists, ensure that it contains the MELPA declaration:"

,------------------------------------------------------------------
| (require 'package)
| (add-to-list 'package-archives
|              '("melpa" . "http://melpa.milkbox.net/packages/";) t)
| (package-initialize)
| (unless (package-installed-p 'scala-mode2)
|   (package-refresh-contents) (package-install 'scala-mode2))
`------------------------------------------------------------------

Add it anywhere, doesn't matter (assumed you don't have any other
package related stuff in your .emacs).

Normally you have something like:

,---------------------
| "~/.emacs"   or
| "~/.emacs.d/init.el"
`---------------------

i.e. search in your home directory for one of these two:
.emacs or .emacs.d.

When you are able to start Emacs, then open it with Emacs!
Should be in emacs-lisp-mode, if not do M-x emacs-lisp-mode
in the buffer, and M-x eval-buffer after inserting the code above.

Then follow the tutorial to check if it worked.

--
Cheers,
Thorsten




reply via email to

[Prev in Thread] Current Thread [Next in Thread]