Created
July 22, 2016 03:47
-
-
Save felideon/797f4ee58d2c9193f3107b3276176f8f to your computer and use it in GitHub Desktop.
Automatically syncing MobileOrg after suffer org-mode buffers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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