我使用emacs Muse是因为工作原因,我并不喜欢在Emacs中编辑我的.muse文件。
我还没有找到在另一个编辑器中发布.muse文件的替代方法。
是否可以从外部Emacs运行Emacs命令,就像将其用作某种解释器一样?
我希望能够在终端上运行以下命令:
> emacs -ne file_with_command file_to_publish.muse
有问题的命令是M-x muse-project-publish-this-file
编辑:在Emacs中,这个命令也有一些输入,它会提示我一次给出一个。它是发布的样式(在我的例子中是html)和发布将转到的目录。
发布于 2016-01-31 00:11:15
muse-project-publish-this-file
不是为在batch mode.Use muse-publish-file
中使用而设计。
第一,
git clone https://github.com/jwiegley/muse /path/to/muse
然后创建包含内容的script.el
(add-to-list 'load-path "/path/to/muse/lisp")
(require 'muse-publish)
(muse-publish-file "file_to_publish.muse" (muse-define-style "newstyle" nil) "/path/to/publish/directory")
注意是/muse/lisp
而不是muse
。
最后,emacs --batch -l script.el
https://stackoverflow.com/questions/33830678
复制相似问题