Make various setup function idempotent.

Seems that cc-mode will run its hooks twice, which will result
duplicates entries in "ac-sources" if using push.
Merge pull request #118 from xiaohanyu/master

Make various setup function idempotent.
`eclim--problems-list-at-first` isn't bound anywhere.

This breaks the if check in `eclim-problems-next`
Use `forward-line` instead of `next-line` and `previous-line`
Remove extra parentheses
removed extra parentheses around function
Fixes completion corrupting DOS-encoded files.
Merge pull request #122 from lmichelbacher/bugfix

Minor bug fix
Merge pull request #120 from vedang/patch/minor-fixes

Small random fixes
Merge pull request #123 from taku0/completion_corrupting_DOS-encoded_files

Fixes completion corrupting DOS-encoded files.