开发者

compile command across emacs sessions

how do i maintain a compile command across emacs sessions for a given file?

so, suppose I have file1.x, and I would like to use tool XComp to compile it. To do this, 开发者_运维技巧I need to run the following hypothetical command:

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

So I do M-x compile, and write that thing. Now I have it available until I close emacs. How do I make that compile command persistent across emacs sessions, maybe a

% -*-

line somewhere? Any help appreciated.


The variable is "compile-command" so you could put this on the first line in your file:

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

You may want to change the "//" for whatever you need to do for comments.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜