Skip to content

Instantly share code, notes, and snippets.

@felideon
Created July 22, 2016 03:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save felideon/797f4ee58d2c9193f3107b3276176f8f to your computer and use it in GitHub Desktop.
Save felideon/797f4ee58d2c9193f3107b3276176f8f to your computer and use it in GitHub Desktop.
Automatically syncing MobileOrg after suffer org-mode buffers
(defun org-mobile-push-on-save ()
"Used in `after-save-hook'."
(when (memq this-command '(save-buffer save-some-buffers))
(org-mobile-push)))
(add-hook 'org-mode-hook
(lambda ()
(add-hook 'after-save-hook 'org-mobile-push-on-save nil 'make-local)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment