Add support for org-roam-protocol (#14687)

Co-authored-by: Lucius Hu <1222865+lebensterben@users.noreply.github.com>
This commit is contained in:
Kjartan Óli Ágústsson 2021-04-21 19:40:33 +00:00 committed by GitHub
parent 433f6729e7
commit ec2c511c6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 23 additions and 2 deletions

View File

@ -3954,6 +3954,7 @@ Improve loading robustness:
(thanks to TheBB)
+ Fix org-repo-todo loading (thanks to TheBB)
+ Add =org-roam-server= package to visualise a =org-roam= database (thanks to KjartanOli)
+ Add =org-roam-protocol= support (thanks to KjartanOli)
**** Osx
- Re-factor and expand support for trash can (thanks to usharf)

View File

@ -27,6 +27,7 @@
- [[#org-brain-support][Org-brain support]]
- [[#org-roam-support][Org-roam support]]
- [[#org-roam-server-support][Org-roam-server support]]
- [[#org-roam-protocol-support][Org-roam-protocol support]]
- [[#mode-line-support][Mode line support]]
- [[#sticky-header-support][Sticky header support]]
- [[#epub-support][Epub support]]
@ -424,6 +425,18 @@ More information about org-roam package (including manual) can be found at [[htt
To install support for [[https://github.com/org-roam/org-roam-server][org-roam-server]] set the variable =org-enable-roam-server=
to =t=.
*** Org-roam-protocol support
To enable support for [[https://www.orgroam.com/manual.html#Roam-Protocol][Org Roam Protocol]] set the variable
=org-enable-roam-protocol= to =t=.
#+begin_src emacs-lisp
(setq-default dotspacemacs-configuration-layers '(
(org :variables
org-enable-roam-protocol t)))
#+end_src
And create a desktop file as described in the [[https://www.orgroam.com/manual.html#Roam-Protocol][org-roam manual]].
** Mode line support
To temporarily enable mode line display of org clock, press ~SPC t m c~.

View File

@ -94,7 +94,11 @@ ATTENTION: `valign-mode' will be laggy working with tables contain more than 100
"If non-nil, enable org-appear in org-mode buffers.")
(defvar org-enable-roam-server nil
"if non-nil, enable org-roam-server support")
"If non-nil, enable org-roam-server support.")
(defvar org-enable-roam-protocol nil
"If non-nil, enable org-roam-protocol.
See https://www.orgroam.com/manual.html#Roam-Protocol.")
(defvar org-enable-asciidoc-support nil
"If non-nil, enable ox-asciidoc.")

View File

@ -952,7 +952,10 @@ Headline^^ Visit entry^^ Filter^^ Da
"ra" 'org-roam-alias-add))
:config
(progn
(spacemacs|hide-lighter org-roam-mode))))
(spacemacs|hide-lighter org-roam-mode)
(when org-enable-roam-protocol
(add-hook 'org-roam-mode-hook (lambda ()
(require 'org-roam-protocol)))))))
(defun org/init-org-sticky-header ()
(use-package org-sticky-header