5

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

Konstantin Morenko
  • 1,407
  • 9
  • 19
unskilledidiot
  • 185
  • 2
  • 7

1 Answers1

12

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

Konstantin Morenko
  • 1,407
  • 9
  • 19
Tephra
  • 821
  • 5
  • 14