I asked another question yesterday but this bothers me a little. I use 4 spaces as indentation for programming (ShellScript, C and Python, mostly). When I want to delete the 4 spaces, I had to do one by one. When I was using vim
, I didn't have to do in that way.
What I want to set up is that, when you put the cursor at the beginning of the first word after indentation and press DEL
, it deletes the 4 spaces at once.
An example:
int main () {
▮int a = 0;
if (a = 0) {
printf("Hello!");
}
return 0;
}
int main () {
▮int a = 0;
if (a = 0) {
printf("Hello!");
}
return 0;
}
(Suppose that ▮ is with the i
).
Is it possible to do that in emacs?
Result of doing C-u C-x =
on the indentation: