Reputation: 11031
I recently upgraded to emacs 24.4, and whenever I try to execute a command while in the term (e.g. C-x C-f
to open a file), it will just say C-x C-f is undefined
.
How can I enable commands to run in the term mode?
Upvotes: 3
Views: 1068
Reputation: 1884
In emacs term
, a lot of keystrokes are disabled as to let the programs in the terminal handle them - most keys involving C-x
are remapped to C-c
, e.g. C-c C-f
for find-file
.
If you want to use term
in the same way as a shell
, you can change to "line mode" with C-c C-j
, where keys are processed by emacs. If you want to go back to directly sending keys to the terminal, press C-c C-k
("char mode").
Details are in the manual.
Upvotes: 8