When in ansi-term, i can't use M-x, the keyboard shortcut doesn't do anything. Does anyone know how to fix this?


Term mode has two input mode char mode and line mode. In char mode you would press C-x M-x (prefix your standard keyboard shortcuts with C-x [0]).

If you enter line mode (C-c C-j [1]) M-x should work as usual.

You can read more on both:

[0] https://www.emacswiki.org/emacs/AnsiTerm

[1] https://www.gnu.org/software/emacs/manual/html_node/emacs/Term-Mode.html

  • 1
    Thanks, could you help me with something else? How can I cancel a process in ansi-term like i would with ctrl + c in a normal terminal outside of emacs? – unskilledidiot Jul 29 '16 at 14:18
  • 1
    C-c C-c will send a ctrl-c to the terminal. – Tephra Jul 29 '16 at 14:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.