Open yesudeep opened 9 years ago
I've currently worked around this by disabling automatic whitespace sanitization for java-mode (although this is not a real solution):
(add-hook 'java-mode-hook (lambda ()
(setq c-basic-offset 2
tab-width 2
indent-tabs-mode nil)
(eclim-mode t)
;; Whitespace mode does not work well with completion in java mode with eclim.
(set (make-local-variable 'whitespace-action) nil)
))
AFAIK the buffer has to be saved for eclipse to pick up the changes.
How about trying a before-save-hook and maybe this package https://github.com/purcell/whitespace-cleanup-mode?
Namaste,
Here's my configuration for whitespace-mode:
Somewhere in the completion routines, emacs-eclim saves the buffer to disk, which triggers a call to whitespace-cleanup, so by the time autocompletion suggestions can be displayed, the pointer moves one character to the left as a result of the trailing space being removed.
I'm not sure why completion needs saving the buffer. Can this be reworked in some way so that completion does not require saving the file? I'd most certainly like to clean up trailing whitespace automatically!
Thank you. :)
Cheers, Yesudeep.