Simon Day
Simon Day

Reputation: 23

text region indent in emacs

I'm trying to make it

    It was the best of times ,
it was the worst of times,
it was the age of wisdom,
it was the age of foolishness.

like this

    It was the best of times ,
    it was the worst of times,
    it was the age of wisdom,
    it was the age of foolishness.

Sorry guys I'm a newbie...In the books it tells me using "ESC C-\" after setting region marks. I tried but when I type Alt C the highlighted region disappear.

So can any guys help me?

Upvotes: 2

Views: 945

Answers (1)

Randy Morris
Randy Morris

Reputation: 40947

In a text-mode buffer if you mark the text in your first example and press Ctrl+Alt+\ you will get the text in your second example. This key combination runs the command indent-region.

I think you're tripping up on the syntax in the docs. C-x means Ctrl+x.

Upvotes: 2

Related Questions