In my Emacs, space key can indent correctly 1 line. If I select several lines, and press space key, the indenting does not work.
space
By following this link, I try C-M- or C-M-q, but C-M deletes directly the whole block selected.
C-M-
C-M-q
C-M
Here is my .emacs, could anyone help?
.emacs
If you want Emacs to correctly indent multiple lines, then the command is C-META also known as C-M-. In other words, it's not Control - M, but Control - Meta - Backslash (Control + Alt + on most keyboards)
C-META
Control - M
Control - Meta - Backslash
2.1m questions
2.1m answers
60 comments
57.0k users