简体   繁体   English

emacs 中的文本区域缩进

[英]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.对不起,我是新手......在书中它告诉我在设置区域标记后使用“ESC C-\\”。 I tried but when I type Alt C the highlighted region disappear.我试过了,但是当我输入 Alt C 时,突出显示的区域消失了。

So can any guys help me?那么有没有大佬可以帮帮我?

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.在文本模式缓冲区中,如果您在第一个示例中标记文本并按Ctrl + Alt + \\,您将获得第二个示例中的文本。 This key combination runs the command indent-region .此组合键运行命令indent-region

I think you're tripping up on the syntax in the docs.我认为您对文档中的语法感到困惑。 Cx means Ctrl + x . Cx表示Ctrl + x

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM