如何从 bash 触发 org-mobile-push?
How to trigger org-mobile-push from bash?
在 Ubuntu 14.04 我经常在 Emacs GUI 上使用 M-x org-mobile-push。现在我正在编写脚本 (bash),我想知道如何从中触发扩展命令 org-mobile-push。
您可以 运行 以批处理模式轻松运行 Emacs。您显然需要让它单独加载您的 .emacs
文件,以便在从命令行评估代码之前吸收您的 org-mode
首选项。
emacs --batch --load ~/.emacs \
--eval "(progn (require 'org-mobile) (org-mobile-push))"
在 Ubuntu 14.04 我经常在 Emacs GUI 上使用 M-x org-mobile-push。现在我正在编写脚本 (bash),我想知道如何从中触发扩展命令 org-mobile-push。
您可以 运行 以批处理模式轻松运行 Emacs。您显然需要让它单独加载您的 .emacs
文件,以便在从命令行评估代码之前吸收您的 org-mode
首选项。
emacs --batch --load ~/.emacs \
--eval "(progn (require 'org-mobile) (org-mobile-push))"