misc/emacs: various cleanups

- Use #' for function symbols
- Remove unused variables
- Use declare-function to shut up byte compiler

R=adonovan
CC=golang-dev
https://codereview.appspot.com/19010044

Committer: Alan Donovan <adonovan@google.com>