【问题标题】:How to trigger org-mobile-push from bash?如何从 bash 触发 org-mobile-push?
【发布时间】:2016-01-29 10:04:46
【问题描述】:

在 Ubuntu 14.04 上,我经常在 Emacs GUI 上使用 M-x org-mobile-push。现在我正在编写一个脚本 (bash),我想知道如何从中触发扩展命令 org-mobile-push。

【问题讨论】:

    标签: bash shell emacs org-mode


    【解决方案1】:

    您可以轻松地以批处理模式运行 Emacs。您显然需要让它单独加载您的 .emacs 文件,以便在从命令行评估代码之前吸收您的 org-mode 首选项。

    emacs --batch --load ~/.emacs \
          --eval "(progn (require 'org-mobile) (org-mobile-push))"
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多