all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Thorsten Jolitz <tjolitz@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Scala with Emacs
Date: Fri, 04 Oct 2013 15:36:13 +0200	[thread overview]
Message-ID: <87y56940qa.fsf@gmail.com> (raw)
In-Reply-To: 4a04bbad-45c6-4239-808b-cb5219cf537b@googlegroups.com

willmann817@gmail.com writes:

> On Friday, October 4, 2013 2:26:17 AM UTC-4, Thorsten Jolitz wrote:
>> willmann817@gmail.com 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	other threads:[~2013-10-04 13:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-04  2:33 Scala with Emacs willmann817
2013-10-04  6:26 ` Thorsten Jolitz
     [not found] ` <mailman.3377.1380868002.10748.help-gnu-emacs@gnu.org>
2013-10-04 13:18   ` willmann817
2013-10-04 13:36     ` Thorsten Jolitz [this message]
2013-10-04 15:28       ` Florian v. Savigny
2013-10-04 17:50         ` Eli Zaretskii
     [not found]         ` <mailman.3419.1380909060.10748.help-gnu-emacs@gnu.org>
2013-10-04 20:33           ` willmann817

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y56940qa.fsf@gmail.com \
    --to=tjolitz@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.