Skip to content

Instantly share code, notes, and snippets.

@zinking
Created January 20, 2014 02:12
Show Gist options
  • Save zinking/8513815 to your computer and use it in GitHub Desktop.
Save zinking/8513815 to your computer and use it in GitHub Desktop.
some lisp tips
(defun db-compile()
"run a command on the current file and revert the buffer"
(interactive)
(shell-command
(format "RTZ.py %s"
(shell-quote-argument (buffer-file-name))))
(revert-buffer t t t))
(global-set-key (kbd "M-o M-c") 'db-compile)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment