如何在Emacs中智能地重新缩进Clojure? [英] How do I intelligently re-indent Clojure in Emacs?

查看:99
本文介绍了如何在Emacs中智能地重新缩进Clojure?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Clojure的新手,并且是Emacs的新手。

I'm new to Clojure and new to Emacs.

有没有Emacs的捷径来智能地重新缩进整个文件?
如果没有,是否至少有一种方法可以左右缩进所选区域?

Is there an Emacs short-cut to intelligently re-indent the whole file? if not, is there at least a way to indent selected regions left or right?

我觉得我在石器时代反复按箭头

I feel like I'm back in the stone age repeatedly pressing the arrows

推荐答案

C - x h 选择整个缓冲区。 C - M - \ 重新缩减所选区域。

C-x h selects the entire buffer. C-M-\ reindents the selected region.

这篇关于如何在Emacs中智能地重新缩进Clojure?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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