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.org | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) (limited to 'doc/gnosis.org') diff --git a/doc/gnosis.org b/doc/gnosis.org index b10af7a..fe5293c 100644 --- a/doc/gnosis.org +++ b/doc/gnosis.org @@ -292,17 +292,34 @@ Example configuration: (setq gnosis-algorithm-ff 0.5) #+end_src -** Auto push changes +* Sync between devices -You can interactively use =gnosis-vc-push= & =gnosis-vc-pull=. +Gnosis uses git to maintain data integrity and facilitate +synchronization across devices. -As the name suggests, they rely on =vc= to work properly. +You will need to configure your remote manually. + +Example: -Make sure you have setup a git remote for gnosis. #+begin_src bash - 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_src + +You can interactively use =gnosis-vc-push= & =gnosis-vc-pull=. As the +name suggests, they rely on =vc= to work properly. + Depending on your setup, =vc= might require an external package for the ssh passphrase dialog, such as ~x11-ssh-askpass~. + + +To automatically push changes after a review session, add this to your configuration: +#+begin_src emacs-lisp +(setf gnosis-vc-auto-push t) +(gnosis-vc-pull) ;; Run vc-pull for gnosis on startup +#+end_src + +You might as well add -- cgit v1.2.3