MobileOrg push by way of git
Following up from yesterday, I now have a fully automated MobileOrg environment. Simply pushing into my org file git repository provokes a post-receive hook that calls a bit of elisp:
#!/usr/bin/emacs --script (load "~/.emacs") (setq org-mobile-directory "~/public_html/org") (org-mobile-push)
Setting org-mobile-directory
in the hook allows me to keep it more
generalized in .emacs (that is, via /ssh
:, so I can run
org-mobile-push
and, especially, org-mobile-pull
from a desktop.
Now, when I do a git push
, I also get this (among other, more
verbose logging) in my stderr:
remote: Files for mobile viewer staged