3 ms·
> (global-set-key "^\" 'keyboard-quit) ;; strangely, C-g does not work. That is probably because Emacs remaps the Unix terminal interrupt character from Ctrl-
by teddyh 12y ago
> (global-set-key "^\" 'keyboard-quit) ;; strangely, C-g does not work.
That is probably because Emacs remaps the Unix terminal interrupt character from Ctrl-C to Ctrl-G, and then detects the actual interrupt signal. If Emacs is run standalone, then probably the terminal has not been set up correctly, and this needs to be adjusted. I’m sure it could be made to work with a few careful calls to (call-process "/bin/stty" …) or so.