Created
January 20, 2014 02:12
-
-
Save zinking/8513815 to your computer and use it in GitHub Desktop.
some lisp tips
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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