如何在 File Variables 中方便地指代当前文件?

想在文件中添加 compile-command 来方便地编译当前文件,有没有简单的方法来指代当前文件?

比如在 shell script 里,加入下面的内容,这里的 <current file> 有简单的方法指代吗?

# -*- compile-command: "bash <current file>"; -*-

不知道;不过compile-command不需要指代当前文件,直接compile-command: "bash "就行了

此话题已在最后回复的 730 天后被自动关闭。不再允许新回复。