some snippets in emacs