【问题标题】:how to launch shell buffers automatically when launching emacs/spacemacs如何在启动 emacs/spacemacs 时自动启动 shell 缓冲区
【发布时间】:2016-11-23 07:22:07
【问题描述】:

我正在使用 spacemacs。我正在开发一个 web c++ 应用程序,通常,我会打开一些 shell 缓冲区来构建、启动 c++ web 服务器、重新部署 css/js 代码。所以我将它们命名为:shell-build、shell-launch、shell-deploy。 我想知道每次启动 spacemacs 时是否有办法自动启动它们。

【问题讨论】:

    标签: shell emacs spacemacs


    【解决方案1】:

    您没有指定它们是否需要在后台打开,但如果不需要,将其放在 .spacemacs 的用户配置部分应该可以解决问题:

    (mapc #'shell '("shell-build"
                    "shell-launch"
                    "shell-deploy"))
    

    mapc将列表中的项目一一传递给shell命令,丢弃函数的返回结果。

    【讨论】:

      猜你喜欢
      • 2013-11-27
      • 1970-01-01
      • 2019-10-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多