Created
December 24, 2017 21:52
-
-
Save emad-elsaid/2df4f1935f695d329ec90f2b95d45736 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
(setq quick-command "pwd") | |
(defun set-quick-command () | |
"Set quick command" | |
(interactive) | |
(setq quick-command (read-string "Enter a quick commmand:"))) | |
(defun execute-quick-command () | |
"Execute a command that was set in quick-command variable" | |
(interactive) | |
(message "Executing: %s" quick-command) | |
(compilation-start quick-command)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment