【问题标题】:Is there a way I could script this scenario with emacs? [duplicate]有没有办法可以用 emacs 编写这个场景? [复制]
【发布时间】:2012-01-03 22:40:13
【问题描述】:

假设我有一个输入文件、一个输出文件和一个包含一些 elisp 代码的文件,它们应该将输入文件转换为输出文件。有没有办法可以从外部流程中完成所有这些工作?也许某种 emacs 的脚本模式?我想将它嵌入到 Web 应用程序中。

【问题讨论】:

    标签: emacs elisp


    【解决方案1】:

    请参阅手册的Initial Options 部分中的emacs --batch。将其与-l'f' or--eval. Thebatchoption forcesprin1,princ, andprintto print to stdout andmessageanderror` 一起使用以打印到 stderr - 这样您就可以实际读写到管道。

    【讨论】:

      【解决方案2】:

      是的,这是可能的。请参阅emacs -lemacs --eval

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2015-01-27
        • 1970-01-01
        • 2014-04-22
        • 2018-08-01
        • 2016-08-10
        • 1970-01-01
        相关资源
        最近更新 更多