emacs: improved `completion-at-point' support

- built-in `company-mode' support for documentation & location lookup (thanks to @dgutov for explaining how to do this).
- simpler, cleaner code