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

查看:19
本文介绍了如何在 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天全站免登陆