挂钩一些Emacs事件来改善组织模式/ MobileOrg集成 [英] Hooking some Emacs events to improve org-mode/MobileOrg integration
本文介绍了挂钩一些Emacs事件来改善组织模式/ MobileOrg集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我最近开始使用 MobileOrg (通过Dropbox)来管理我的组织模式TODO当我远离我的电脑时,列表。
一般来说,这是很好的,但是来回同步有几步,所以我想尝试简化有一点是通过自动化PC端的步骤。
无论如何,这里有两件事我想做的:
- 保存完成后,每次保存文件时,运行
org-mobile-push
。我使用emacs的唯一的事情是组织模式,所以这应该是正常的。 - 在emacs上运行
org-mobile-pull
启动。 - 定期运行
org-mobile-pull
- http://www.gnu.org/s/emacs/manual/html_node/elisp/Standard-Hooks.html - 寻找
after-save-hook
- 启动事情将转到您的
.emacs
文件 - 如果您在此文件末尾调用org-mobile-pull
,则每次打开Emacs - 检查这个SO答案以进行定期运行的一些功能:如何定期在emacs中运行任务?
- Run
org-mobile-push
every time a file is saved, after the save completes. The only thing I use emacs for is org-mode, so this should be fine. - Run
org-mobile-pull
on emacs startup. - Run
org-mobile-pull
periodically, say every hour or so. - http://www.gnu.org/s/emacs/manual/html_node/elisp/Standard-Hooks.html - look for
after-save-hook
- Startup things go to your
.emacs
file - if you put the call toorg-mobile-pull
at the end of this file, you will have it run every time you open Emacs - Check this SO answer for a periodical run of some function: How to periodically run a task within emacs?
<
谢谢。
解决方案
我没有在这台机器上安装Emacs ,但这是你可以做的:
希望这有帮助。
I've recently started using MobileOrg (through Dropbox) to be able to manage my org-mode TODO lists while I'm away from my computer.
It's generally great, but the syncing back and forth has a few steps, so I'd like to try and simplify it a bit by automating the steps on the PC side.
Anyway, here are the two things I'd like to do:
Thanks.
解决方案
I don't have Emacs installed on this machine, but here's what you can do:
Hope this helps.
这篇关于挂钩一些Emacs事件来改善组织模式/ MobileOrg集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文