|
From: | Jorge A. Alfaro-Murillo |
Subject: | Re: [O] Require feedback on an idea: move to a central server all my org file and edit from there? |
Date: | Tue, 26 Jan 2016 10:21:41 -0500 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Marcin Borkowski writes:
On 2016-01-23, at 19:28, Xebar Saram <address@hidden> wrote:Thanks for the feedback guys! Marcin: do you know of good packages or methods to auto push/pull from emacs each time you save a file (preferably ones that dont require coding skills :-))Sadly, no. But this shouldn't be too difficult - basically, just put some code to run hg/git/whatever into one of the numerous Emacs hooks. For instance, check out after-save-hook. Alternatively, you could advice a function responsible for actually doing the autosave (do-auto-save - unfortunately, it's written in C and not in Elisp).
You also might want to check git-annex, specifically the assistant: https://git-annex.branchable.com/assistant/
Best, -- Jorge.
[Prev in Thread] | Current Thread | [Next in Thread] |