Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试将所有编译配置(准确地说)移动到compilation-command项目顶部的文件中。它工作正常,只是我找不到在那里使用的方法,没有它我必须使用绝对路径,这不是很方便。compilation-directory.dir-locals.elexpand-file-name
compilation-command
compilation-directory
.dir-locals.el
expand-file-name
那么,有没有办法(或肮脏的黑客)让本地目录变量在分配之前评估值?
您可以使用eval“变量”来评估任意 elisp 表达式。您可能想要自定义enable-local-eval和/或safe-local-eval-forms每次都不会被问到。
eval
enable-local-eval
safe-local-eval-forms