You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
;; Use whitespace mode. Cleans up trailing spaces, shows tabs, unnecessary
;; whitespace, EOF newline, bad indentation, margin bleeds, etc.
(require 'whitespace)
(global-whitespace-mode t)
(setq whitespace-style
'(face empty indentation lines-tail newline trailing)
whitespace-action '(auto-cleanup warn-read-only)
whitespace-line-column 80)
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.
The text was updated successfully, but these errors were encountered:
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)
))
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.
The text was updated successfully, but these errors were encountered: