emacs: initialize buffer-local variables correctly