我的代码是这种语言的许多长行,如下所示
(defn check-if-installed[x] (:exit(sh "sh" "-c" (str "command -v " x " >/dev/null 2>&1 || { echo >&2 \"\"; exit 1; }"))))
或者
(def Open-Action (action :handler (fn [e] (choose-file :type :open :selection-mode :files-only :dir ListDir :success-fn (fn [fc file](setup-list file)))) :name "Open" :key "menu O" :tip "Open spelling list"))
这太可怕了。我想像这样格式化它
(if (= a something)
(if (= b otherthing)
(foo)))
如何以更好的方式美化源代码?