Crdt use tls

This commit is contained in:
Emmet 2024-08-08 08:03:37 -05:00
parent 5855e5a94b
commit 8a6c09cd61
2 changed files with 11 additions and 4 deletions

View file

@ -653,7 +653,8 @@ If the path from LINK does not exist, nil is returned."
)
(require 'crdt)
(setq crdt-default-tls nil)
(setq crdt-default-tls t)
(setq crdt-use-stunnel t)
(setq crdt-default-name "Emmet")
(if (file-exists-p "~/.emacs.d/crdt-private.el") (load! "~/.emacs.d/crdt-private.el"))
(defun crdt-connect-default ()
@ -676,9 +677,12 @@ If the path from LINK does not exist, nil is returned."
:desc "Add buffer to a session"
"a" #'crdt-share-buffer
:desc "Stop sharing buffer to session"
:desc "Stop sharing buffer when running a server"
"s" #'crdt-stop-share-buffer
:desc "Run M-x on the (remote) crdt session"
"x" #'crdt-M-x
:desc "List crdt buffers in a session"
"l" #'crdt-list-buffers

View file

@ -786,7 +786,8 @@ exit
*** Crdt
#+begin_src emacs-lisp :tangle config.el
(require 'crdt)
(setq crdt-default-tls nil)
(setq crdt-default-tls t)
(setq crdt-use-stunnel t)
(setq crdt-default-name "Emmet")
(if (file-exists-p "~/.emacs.d/crdt-private.el") (load! "~/.emacs.d/crdt-private.el"))
(defun crdt-connect-default ()
@ -809,9 +810,11 @@ exit
:desc "Add buffer to a session"
"a" #'crdt-share-buffer
:desc "Stop sharing buffer to session"
:desc "Stop sharing buffer when running a server"
"s" #'crdt-stop-share-buffer
:desc "Run M-x on the (remote) crdt session"
"x" #'crdt-M-x
:desc "List crdt buffers in a session"
"l" #'crdt-list-buffers