我开始使用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"))