Skip to content

Commit

Permalink
refactor: move crdt from me-docs to me-editor
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Dec 7, 2024
1 parent bd14cf8 commit 22c97d0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
14 changes: 0 additions & 14 deletions modules/me-docs.el
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,6 @@
(pdfgrep-mode 1))


(defconst +tuntox-available-p (and (executable-find "tuntox") t))
(defconst +stunnel-available-p (and (executable-find "stunnel") t))


;; Collaborative editing using Conflict-free Replicated Data Types
(use-package crdt
:straight t
:when (or +tuntox-available-p +stunnel-available-p)
:custom
(crdt-tuntox-password-in-url t)
(crdt-use-tuntox +tuntox-available-p)
(crdt-use-stunnel +stunnel-available-p))


;; An Emacs major mode to read and browse RFC documents
(use-package rfc-mode
:straight t
Expand Down
10 changes: 10 additions & 0 deletions modules/me-editor.el
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,16 @@ In some files, there is a mix of spaces and tabs. This uses
("M-<right>" . drag-stuff-right)))


;; Collaborative editing using Conflict-free Replicated Data Types
(use-package crdt
:straight t
:when (or (executable-find "tuntox") (executable-find "stunnel"))
:custom
(crdt-tuntox-password-in-url t)
(crdt-use-tuntox (executable-find "tuntox"))
(crdt-use-stunnel (executable-find "stunnel")))


;; Perform a backup on each file save, real backup for Emacs!
(use-package real-backup
:straight (:host github :repo "abougouffa/real-backup")
Expand Down

0 comments on commit 22c97d0

Please sign in to comment.