Skip to content

Instantly share code, notes, and snippets.

@d5884
Created December 19, 2011 12:08
Show Gist options
  • Save d5884/1496929 to your computer and use it in GitHub Desktop.
Save d5884/1496929 to your computer and use it in GitHub Desktop.
to use interruption keys in shell-mode
(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