Created
March 20, 2018 14:00
-
-
Save amirrajan/df21424ee3b3e3de6e4a0b5bba602278 to your computer and use it in GitHub Desktop.
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 execute-random-shiz (beg end) | |
"Select an are, run this command, and execute whatever you want" | |
(interactive "r") | |
(save-excursion | |
(eshell-command (concat "rake" "sql --script=" "\"" (buffer-substring-no-properties beg end) "\"")))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment