【问题标题】:shell-command output in a frame instead of splitting the active windowshell 命令在框架中输出,而不是拆分活动窗口
【发布时间】:2019-01-23 05:59:47
【问题描述】:

为方便起见,我在 Emacs 中使用 shell-command 来处理 latex/dvips 和其他命令。虽然shell-command 输出的默认行为是拆分当前活动窗口,但我宁愿让它在新框架中显示输出缓冲区。有没有办法做到这一点?

【问题讨论】:

  • 还有其他更好的方法从emacs运行latex

标签: shell emacs


【解决方案1】:

对于小型 LaTeX 文档,从 Emacs 的角度来看,您可以将其乳胶化视为“compilation”命令。

我建议您在 foo.tex 文档的结尾加上类似的评论

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Local Variables: ;;
%% compile-command: "lualatex --halt-on-error --file-line-error foo"
%% End: ;;

根据您的需要进行调整。阅读local variables in files

我的~/.emacs 部分显示为here。然后我用绑定到recompileF12 对该文档进行胶乳,在我的系统上显示另一个框架中的“编译”(即LaTeX-ing)。

PS。注意术语:emacs 框架不是窗口管理器框架。

【讨论】:

    猜你喜欢
    • 2020-09-16
    • 2015-01-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多