0

How to type C-M?

Particularly, I am after this command -

enter image description here

from https://www.gnu.org/software/emacs/manual/html_node/emacs/Indentation-Commands.html

First attempt

  1. Select the text
  2. Use the combination Ctrl-Alt and Ctrl-Alt GR but I don't see any effect.

Second attempt

  1. Select the text
  2. Press at the same time keys marked with a red square on the keyboard map enter image description here No effect

By asking a key description (type C-h k followed by the relevant key combination) I really get the correct reference:

enter image description here

but why I don't see any indentation?

8
  • 2
    Possible duplicate of How to type S-<LEFT>
    – Tyler
    Commented Jul 22, 2018 at 12:00
  • "I try the combination Ctrl-Alt and Ctrl-Alt GR but I don't see any effect" -- did you type Ctrl-Alt-\ (being the key sequence you asked about), or just Ctrl-Alt (which does nothing in Emacs).
    – phils
    Commented Jul 22, 2018 at 12:56
  • 1
    Thanks for the screenshot -- you've understood correctly, so something else is going wrong here. If you type C-h k emacs should prompt you in the minibuffer with "Describe the following key". If you then try typing C-M-\ again, what does Emacs tell you?
    – phils
    Commented Jul 22, 2018 at 13:09
  • @phils, I really get the correct reference, but I don't get the indentation. See update of my question.
    – Viesturs
    Commented Jul 22, 2018 at 13:19
  • Ok, so this question has been successfully answered, and you should post your new question separately. @jdtonkin's answer is correct and is working for you, so you should probably Accept it. In the new question you should show us exactly what text you are trying to indent, and tell us which major mode the buffer is in.
    – phils
    Commented Jul 22, 2018 at 13:25

1 Answer 1

1

C-M-\ requires all three keys to be held at the same time, not like C-M \. So, in your case, that's Ctrl-Alt-\ all together.

2
  • I am unsuccessful in applying your solution. See update of my question.
    – Viesturs
    Commented Jul 22, 2018 at 13:05
  • This is bound to indent-region: have you selected a region?
    – NickD
    Commented Jul 22, 2018 at 21:37

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