0

我开始使用multi-term,因为我很想使用 emacs 的控制台。我遇到的第一个问题是,似乎在 emacs 中并非所有内容都被打印出来。

emacs 内部的输出:

(project) ✔  se7entyse7en in ~/Projects/someProject (develop)  $ sbt console
[info] Loading settings from plugins.sbt,idea.sbt ...
[info] Loading global plugins from /home/se7entyse7en/.sbt/1.0/plugins
[info] Loading project definition from /home/se7entyse7en/Projects/someProject
[info] Loading settings from ensime.sbt,build.sbt ...
[info] Set current project to someProject (in build file:/home/se7entyse7en/Projects/someProject/)
[info] Compiling 8 Scala sources to /home/se7entyse7en/Projects/someProject/target/scala-2.11/classes ...

终端输出:

(project) ✔  se7entyse7en in ~/Projects/someProject (develop)  $ sbt console
[info] Loading settings from plugins.sbt,idea.sbt ...
[info] Loading global plugins from /home/se7entyse7en/.sbt/1.0/plugins
[info] Loading project definition from /home/se7entyse7en/Projects/someProject
[info] Loading settings from ensime.sbt,build.sbt ...
[info] Set current project to someProject (in build file:/home/se7entyse7en/Projects/someProject/)
[info] Compiling 8 Scala sources to /home/se7entyse7en/Projects/someProject/target/scala-2.11/classes ...
[error] /home/se7entyse7en/Projects/someProject/src/main/scala/someScalaFkle.scala:76:13: identifier expected but 'val' found.
[error]   def build(val t) {
[error]             ^
[error] /home/se7entyse7en/Projects/someProject/src/main/scala/someScalaFile.scala:79:1: ':' expected but '}' found.
[error] }
[error] ^
[error] two errors found
[error] (Compile / compileIncremental) Compilation failed
[error] Total time: 4 s, completed Jul 18, 2018 9:05:41 AM

里面的配置.emacs很简单:

(use-package multi-term
  :config
  (setq multi-term-program "/bin/zsh"))
4

0 回答 0