Created
December 19, 2011 12:08
-
-
Save d5884/1496929 to your computer and use it in GitHub Desktop.
to use interruption keys in shell-mode
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
(defadvice comint-interrupt-subjob (around ad-comint-interrupt-subjob activate) | |
(process-send-string nil "\C-c")) | |
(defadvice comint-stop-subjob (around ad-comint-interrupt-subjob activate) | |
(process-send-string nil "\C-z")) | |
(defadvice comint-send-eof (around ad-comint-send-eof activate) | |
(process-send-string nil "\C-d")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment