[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: An Eclim frontend for Emacs
From: |
Chris McMahan |
Subject: |
Re: An Eclim frontend for Emacs |
Date: |
Tue, 28 Apr 2009 16:33:40 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.90 (windows-nt) |
Tassilo Horn <tassilo@member.fsf.org> writes:
> Richard Riley <rileyrgdev@googlemail.com> writes:
>
> Hi Richard,
>
>> You're saying that eclipse completion features now work in emacs with
>> company-mode?
>
> Exactly.
>
>> Wow? Is it trivial to set up?
>
> Quite. Here's my config.
>
> (require 'company)
> (define-key company-mode-map (kbd "M-SPC") 'company-complete)
>
> (defun th-turn-on-company-mode ()
> (interactive)
> (company-mode 1))
>
> (dolist (hook (list
> 'emacs-lisp-mode-hook
> 'lisp-mode-hook
> 'lisp-interaction-mode-hook
> 'clojure-mode-hook
> 'java-mode-hook
> 'haskell-mode-hook
> 'slime-repl-mode-hook
> 'sh-mode-hook))
> (add-hook hook 'th-turn-on-company-mode))
>
> (setq company-idle-delay nil
> company-eclim-auto-save t)
>
> (setq company-eclim-executable
> "~/opt/eclipse/plugins/org.eclim_1.4.5/bin/eclim")
>
> (defun th-java-mode-init ()
> (setq company-backend 'company-eclim))
>
> (add-hook 'java-mode-hook 'th-java-mode-init)
>
> And you need to install eclim, of course. But it has an installer that
> worked just fine for me.
>
>> What about stuff like refactoring? Is there an eclim interface for
>> that? Or context API help? Or are those outside of the remit of
>> eclim?
>
> No, I think most if not all features are usable via eclim. For
> refactoring I don't know, but at least the eclipse incremental compiler
> can be used to highlight errors in the code. Same for any completion
> functionality and things like "Organize imports".
>
> That's all available for Vim right now, and I plan to start a project
> which writes an emacs frontend. But my time is quite limited at the
> moment, so I don't know exactly when I get a first version which
> implements some first features. When I've done that, I'll announce it
> and hope for many volunteers doing the work for me. ;-)
>
> The git repo is already there:
>
> http://repo.or.cz/w/eclim-emacs.git
>
> Bye,
> Tassilo
Thanks for the config, but I have had no luck getting it (or variations
of it) to work in Windows XP using Emacs 23. I've tried your config,
pointing the executable to
"c:/eclipse/plugins/org.eclim_1.4.5/bin/eclim.bat"
"c:/eclipse/plugins/org.eclim_1.4.5/bin/eclim.cmd"
"/cygdrivec/eclipse/plugins/org.eclim_1.4.5/bin/eclim.cmd"
and any other combination I can think of.
When I start the eclimd application
"c:/eclipse/eclimd.bat"
or
"c:/eclipse/eclimd.cmd"
it seems to start ok, and tells me it's listening on port 9091
... other output...
Debug options:
file:/C:/eclipse/.options not found
Time to load bundles: 63
Starting application: 14656
2009-04-28 16:30:34,218 INFO [org.eclim.eclipse.AbstractEclimApplication]
Starting eclim...Application Started: 16562
2009-04-28 16:30:35,687 INFO [org.eclim.eclipse.AbstractEclimApplication]
Loading eclim plugins...
2009-04-28 16:30:35,703 INFO [org.eclim.eclipse.AbstractEclimApplication]
Loading plugin org.eclim.ant
2009-04-28 16:30:35,734 INFO [org.eclim.eclipse.AbstractEclimApplication]
Loaded plugin org.eclim.ant_1.4.5.
2009-04-28 16:30:35,750 INFO [org.eclim.eclipse.AbstractEclimApplication]
Loading plugin org.eclim.jdt
2009-04-28 16:30:37,062 WARN [org.eclim.plugin.jdt.PluginResources] Unable to
locate jre src.zip.
2009-04-28 16:30:37,140 INFO [org.eclim.eclipse.AbstractEclimApplication]
Loaded plugin org.eclim.jdt_1.4.5.
2009-04-28 16:30:37,156 INFO [org.eclim.eclipse.AbstractEclimApplication]
Loading plugin org.eclim.maven
2009-04-28 16:30:37,171 INFO [org.eclim.eclipse.AbstractEclimApplication]
Loaded plugin org.eclim.maven_1.4.5.
2009-04-28 16:30:37,203 INFO [org.eclim.eclipse.AbstractEclimApplication]
Eclim Server Startedon port 9091.
But when I load the java file in emacs that I've set up inside eclipse,
I get no completions whatsoever. It's as if company is not even loaded.
I have verified that company works ok with elisp, and also the the
company-backend when editing java is set to "company-eclim",
I'm at a loss now on how to get this working on XP, but I would REALLY
like to see this functionality!
Has anyone else been able to get company and eclimd working on XP?
Thanks for a great package!!
- Chris McMahan
--
(. .)
=ooO=(_)=Ooo=====================================
Chris McMahan | first_initiallastname@one.dot.net
=================================================
- Re: An Eclim frontend for Emacs, (continued)
- Re: An Eclim frontend for Emacs, Tassilo Horn, 2009/04/20
- Re: An Eclim frontend for Emacs, Nikolaj Schumacher, 2009/04/22
- Re: An Eclim frontend for Emacs, Tassilo Horn, 2009/04/22
- Re: An Eclim frontend for Emacs, Nikolaj Schumacher, 2009/04/22
- Re: An Eclim frontend for Emacs, Tassilo Horn, 2009/04/22
- Message not available
- Re: An Eclim frontend for Emacs, Richard Riley, 2009/04/20
- Re: An Eclim frontend for Emacs, Tassilo Horn, 2009/04/21
- Message not available
- Re: An Eclim frontend for Emacs,
Chris McMahan <=
- Re: An Eclim frontend for Emacs, Tassilo Horn, 2009/04/29
- Message not available
- Re: An Eclim frontend for Emacs, Chris McMahan, 2009/04/30
- Message not available
- Re: An Eclim frontend for Emacs, Richard Riley, 2009/04/18
- Re[2]: An Eclim frontend for Emacs, Eric M. Ludlam, 2009/04/18
- Message not available
- Re: Is JDEE moribund? Is Emacs a viable Java devel environment?, Richard Riley, 2009/04/18
- Message not available
- Re: Is JDEE moribund? Is Emacs a viable Java devel environment?, Richard Riley, 2009/04/18
Re: Is JDEE moribund? Is Emacs a viable Java devel environment?, address@hidden, 2009/04/17
Re: Is JDEE moribund? Is Emacs a viable Java devel environment?, hazlup, 2009/04/17