From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thorsten Jolitz Newsgroups: gmane.emacs.help Subject: Re: Scala with Emacs Date: Fri, 04 Oct 2013 15:36:13 +0200 Message-ID: <87y56940qa.fsf@gmail.com> References: <4a04bbad-45c6-4239-808b-cb5219cf537b@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1380893805 7031 80.91.229.3 (4 Oct 2013 13:36:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Oct 2013 13:36:45 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 04 15:36:49 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VS5Ym-0003fV-Nh for geh-help-gnu-emacs@m.gmane.org; Fri, 04 Oct 2013 15:36:48 +0200 Original-Received: from localhost ([::1]:48065 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VS5Ym-0003ex-CN for geh-help-gnu-emacs@m.gmane.org; Fri, 04 Oct 2013 09:36:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33656) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VS5YW-0003We-RT for help-gnu-emacs@gnu.org; Fri, 04 Oct 2013 09:36:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VS5YR-0002Dd-Bv for help-gnu-emacs@gnu.org; Fri, 04 Oct 2013 09:36:32 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:40919) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VS5YR-0002DT-4Z for help-gnu-emacs@gnu.org; Fri, 04 Oct 2013 09:36:27 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VS5YO-0003LJ-LK for help-gnu-emacs@gnu.org; Fri, 04 Oct 2013 15:36:24 +0200 Original-Received: from e178190177.adsl.alicedsl.de ([85.178.190.177]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 Oct 2013 15:36:24 +0200 Original-Received: from tjolitz by e178190177.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 Oct 2013 15:36:24 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 99 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: e178190177.adsl.alicedsl.de User-Agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:3O+uFzmg9jjg7ezTtxs4QdxW4II= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:93831 Archived-At: 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