在 Emacs 中缩进几行 [英] Indent several lines in Emacs

查看:28
本文介绍了在 Emacs 中缩进几行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的 Emacs 中,space 键可以正确缩进 1 行.如果我选择多行,然后按 space 键,缩进不起作用.

In my Emacs, space key can indent correctly 1 line. If I select several lines, and press space key, the indenting does not work.

按照这个链接,我尝试CM-CMq,但 CM 直接删除整个选中的块.

By following this link, I try C-M- or C-M-q, but C-M deletes directly the whole block selected.

这是我的 .emacs,有人可以帮忙吗?

Here is my .emacs, could anyone help?

推荐答案

如果你想让 Emacs 正确缩进多行,那么命令是 C-META 也称为 CM-.换句话说,不是Control - M,而是Control - Meta - Backslash (Control + Alt + 在大多数键盘上)

If you want Emacs to correctly indent multiple lines, then the command is C-META also known as C-M-. In other words, it's not Control - M, but Control - Meta - Backslash (Control + Alt + on most keyboards)

这篇关于在 Emacs 中缩进几行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆