0

How to insert <TAB> while in iedit mode?

following example:

int blah; //< x
float moo; //< y
void foobar; //< z

Now I select '//<' and go into iedit-mode, because I want to align those comments nicely with a single tab character. I'd like to get following result:

int blah;   //< x
float moo;  //< y
void foobar;    //< z

It doesn't look good here on stackexchange, because of wrong tab width.

Anyway, when in iedit-mode <tab> and S-<tab> switches to next/previous occurence.

Edit: Duplicate of question to Emacs shell and telnet? This question is solved by the same solution. But I would have never searched for that to solve my iedit problem.

3
  • 1
    Possible duplicate of Emacs shell send ^] (hat-right-sqare-bracket)
    – Drew
    Feb 7, 2018 at 20:59
  • The solution is the same but I would had never looked at that question.
    – jue
    Feb 8, 2018 at 0:29
  • Yeah, I know. Someone should maybe do some cleanup editing, so the question fits what it is really asking (or should be asking).
    – Drew
    Feb 8, 2018 at 2:01

1 Answer 1

3

Use quoted-insert, bound to C-q by default. It'll insert the next key literally, without triggering any other functions bound to that key.

So you'd say C-q TAB to get what you want.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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