【问题标题】:compile command across emacs sessions跨 emacs 会话编译命令
【发布时间】:2010-07-08 00:48:58
【问题描述】:

我如何在给定文件的 emacs 会话中维护编译命令?

所以,假设我有 file1.x,我想使用工具 XComp 来编译它。为此,我需要运行以下假设命令:

Xcomp file1.x && extract file1.x && Xlink file1.obj

所以我做 M-x 编译,然后写那个东西。现在我可以使用它,直到我关闭 emacs。如何使该编译命令在 emacs 会话中持久存在,也许是

% -*-

在某处排队?任何帮助表示赞赏。

【问题讨论】:

    标签: emacs compilation


    【解决方案1】:

    变量是“compile-command”,所以你可以把它放在文件的第一行:

    // -*- compile-command: "Xcomp file1.x && extract file1.x && Xlink file1.obj" -*-
    

    您可能想要更改“//”来为 cmets 执行任何操作。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-05-31
      • 1970-01-01
      • 1970-01-01
      • 2011-01-17
      • 1970-01-01
      • 2018-04-21
      • 2013-07-30
      相关资源
      最近更新 更多