Use thing-at-point for proper word recognition

So it can be used in code buffer as well. (current-word) only returns a
symbol, so look up fails most of the times.