Emacs -- how to press C-d in Eshell to exit cat file creation
How do I use the Control key while using Eshell to send that command to the remote server -- e.g., when creating a cat file and I need to press Control+d to save and exit, or when using Nano edit and I need to exit with Control+x.
Solution 1:
For the specific case of C-d, you can use C-c C-d, which is bound to eshell-send-eof-to-process
. Otherwise, use C-q for quoted-insert
, to force the following character to be inserted into the buffer even if it has a key binding in Emacs.