Comments (4)
If you use global-eclim-mode
, eclim-mode will be used for every buffer. Try this:
(add-to-list 'load-path (concat dotfiles-dir "plugins/emacs-eclim"))
(add-to-list 'load-path (concat dotfiles-dir "plugins/emacs-eclim/vendor"))
(require 'eclim)
(require 'eclimd)
(setq eclim-auto-save t)
(add-hook 'java-mode-hook '(lambda () (eclim-mode t)))
(setq eclim-print-debug-messages t)
That being said, I haven't seen a lag with eclim sending ping commands on my system (although it's Linux).
from emacs-eclim.
hmmm... that didn't help. It still is pinging for every buffer. :(
I though that the (add-hook 'java-mode-hok '(lambda () (eclim-mode t)))
would limit it to only java buffers?
Could I have set something up wrong?
(add-to-list 'load-path (concat dotfiles-dir "plugins/emacs-eclim"))
(add-to-list 'load-path (concat dotfiles-dir "plugins/emacs-eclim/vendor"))
(require 'eclim)
(require 'eclimd)
(setq eclim-auto-save t)
;;(global-eclim-mode)
(add-hook 'java-mode-hook '(lambda () (eclim-mode t)))
(setq eclim-print-debug-messages t)
It isn't a long lag, a second or two -- it is a little bit annoying though. I wish I could turn it on/off whenever I actually wanted to use it.
from emacs-eclim.
I see in the logs that emacs-eclim apparently performs three separate 'ping' calls and one 'project_list' call every time I open a new java file. For me, it happens almost instantaneously anyway, so it's not that big of a problem. But it's kind of an ugly solution.
As far as I can see, it's the eclim--running-p
function that's the culprit. Several other functions call it to determine if there is an eclim running or not. Maybe we could cache that value?
Or perhaps we should rethink why that function is necessary. Maybe it would be better just to assume that eclim is present, and provide a good error message if calls are failing.
from emacs-eclim.
This should be fixed now.
from emacs-eclim.
Related Issues (20)
- Suggestion: Integration with Projectile? HOT 3
- Error in post-command-hook (global-eclim-mode-check-buffers): (void-function member-if) HOT 11
- Missing argument for option: n HOT 4
- eclim-run-java-doc fails for multiple projects HOT 1
- Eclim auto completion not working
- Why aren't the pull requests being reviewed? HOT 12
- toggle-maximize-buffer doesn't exist? HOT 2
- Mention new fork of emacs-eclim? HOT 1
- Problem with tramp when using .authinfo.gpg HOT 5
- company-emacs-eclim error: Project 'eclipse' does not have the required nature 'java' HOT 2
- url-insert-file-contents: http://melpa.org/packages/emacs-eclim-20160318.1747.tar: Not found HOT 1
- eclim freezes by auto-save-file HOT 10
- package name not compatible with use-package HOT 1
- Incorrect imports for nested classes when using company autocompletion HOT 1
- cannot open projects HOT 1
- emacs-eclim renamed to eclim in melpa HOT 7
- Directory does not exist: /home/user/eclipse/features HOT 6
- Emacs daemon startup hangs with (require 'eclim) HOT 3
- No "Create type" function? HOT 2
- Could not find or load main class org.test HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emacs-eclim.