1

我想为所有苹果酒输出设置填充列值。我在用着:

(require 'cider)
(setq cider-show-error-buffer              nil
      cider-docview-fill-column            76
      cider-stacktrace-fill-column         76
      nrepl-buffer-name-show-port          nil
      cider-repl-display-in-current-window t
      cider-repl-result-prefix             ";; => ")

但是当我打电话时meta,我得到了这个:

user> (meta #'str)
;; => {:added "1.0", :ns #<Namespace clojure.core>, :name str, :file "clojure/core.clj", :static true, :column 1, :line 511, :tag java.lang.String, :arglists ([] [x] [x & ys]), :doc "With no args, returns the empty string. With one arg x, returns\n  x.toString().  (str nil) returns the empty string. With more than\n  one arg, returns the concatenation of the str values of the args."}

一切都在一条线上。我敢打赌,有一些变量cider-...-fill-column会对我有所帮助。我用谷歌搜索它,但只找到cider-docview-fill-columnand cider-stacktrace-fill-column

4

1 回答 1

3

没有这样的 REPL 填充列变量,但您可以在 REPL 中启用 eval 结果的漂亮打印(请参阅 REPL 的菜单)。您可以像这样从配置中启用它:

(setq cider-repl-use-pretty-printing t)
于 2014-08-21T06:07:00.307 回答