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?

  • 2
    Possible duplicate of How to type S-<LEFT> – Tyler Jul 22 '18 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 Jul 22 '18 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 Jul 22 '18 at 13:09
  • @phils, I really get the correct reference, but I don't get the indentation. See update of my question. – Viesturs Jul 22 '18 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 Jul 22 '18 at 13:25
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.

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

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