From 6e89ce8852a5625214c4339dac991fd781083b9d Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Sun, 18 Feb 2024 18:28:42 +0200 Subject: doc: Add sync devices & fix typos --- doc/gnosis.texi | 34 +++++++++++++++++++++++++--------- 1 file changed, 25 insertions(+), 9 deletions(-) (limited to 'doc/gnosis.texi') diff --git a/doc/gnosis.texi b/doc/gnosis.texi index 487a4c1..379dc18 100644 --- a/doc/gnosis.texi +++ b/doc/gnosis.texi @@ -53,6 +53,7 @@ Git repositories: * Note Types:: * Customization & Extension:: * Gnosis Algorithm:: +* Sync between devices:: @detailmenu --- The Detailed Node Listing --- @@ -80,7 +81,6 @@ Gnosis Algorithm * Initial Interval:: * Easiness Factor:: * Forgetting Factor:: -* Auto push changes:: @end detailmenu @end menu @@ -356,7 +356,6 @@ Optionally, you might want to create your own custom @samp{gnosis-display} funct * Initial Interval:: * Easiness Factor:: * Forgetting Factor:: -* Auto push changes:: @end menu @node Initial Interval @@ -427,20 +426,37 @@ Example configuration: (setq gnosis-algorithm-ff 0.5) @end lisp -@node Auto push changes -@section Auto push changes +@node Sync between devices +@chapter Sync between devices -You can interactively use @samp{gnosis-vc-push} & @samp{gnosis-vc-pull}. +Gnosis uses git to maintain data integrity and facilitate +synchronization across devices. -As the name suggests, they rely on @samp{vc} to work properly. +You will need to configure your remote manually. + +Example: -Make sure you have setup a git remote for gnosis. @example -cd ~//gnosis # default location for gnosis -git remote add # +cd ~/.emacs.d/gnosis # default location for gnosis +git init # After completing your first review session, a git repo should have been initialized automatically. +git remote add +git push --set-upstream origin master @end example + +You can interactively use @samp{gnosis-vc-push} & @samp{gnosis-vc-pull}. As the +name suggests, they rely on @samp{vc} to work properly. + Depending on your setup, @samp{vc} might require an external package for the ssh passphrase dialog, such as @code{x11-ssh-askpass}. + +To automatically push changes after a review session, add this to your configuration: +@lisp +(setf gnosis-vc-auto-push t) +(gnosis-vc-pull) ;; Run vc-pull for gnosis on startup +@end lisp + +You might as well add + @bye -- cgit v1.2.3