Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for the org-roam-server package #14613

Closed
wants to merge 1 commit into from

Conversation

KjartanOli
Copy link
Contributor

Add support for the org-roam-server package. Which provides a convinient way of visualising the org-roam database.

Currently this PR requires the user to manually enable org-roam support by setting org-enable-roam-support. Any suggestions on how to make that automatic are welcome.

@KjartanOli
Copy link
Contributor Author

Don't merge this yet. I'm working on some improvements.

layers/+emacs/org/README.org Outdated Show resolved Hide resolved
org-enable-roam-server t)))
#+END_SRC

Do note that org-roam-server is more or less useless without org-roam. So you
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

org-enable-roam-support should default to t if org-enable-roam-server is non-nil. Then this paragraph is not needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't merge this yet. I'm working on some improvements.

Exactly what I was working on.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although I seem to have been unsuccessful. It still just loads the package, but none of the keybindings.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my new comment.

@@ -391,7 +391,7 @@ To install org-roam support set the variable =org-enable-roam-support= to =t=.
More information about org-roam package (including manual) can be found at [[https://www.orgroam.com/][Org-roam]] website.

** Org-roam-server support
To install support for [[https://github.com/org-roam/org-roam-server][org-roam-server]] set the variable =org-enable-roam-server=
To enable support
Copy link
Contributor

@dalanicolai dalanicolai Apr 8, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you accidentally deleted too much here. Also I guess this section could be a subsection of Org-roam-support (add extra *)

:init
(progn
(spacemacs/set-leader-keys "aors" 'org-roam-server-mode)
(spacemacs/set-leader-keys-for-major-mode 'org-mode "mrs" 'org-roam-server-mode))))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When you use set-leader-keys-for-major-mode it will automatically get bound behind SPC m / ,, the binding will be available only in org-mode buffers (remove m)

@dalanicolai
Copy link
Contributor

dalanicolai commented Apr 8, 2021

Also, a single fix/addition should consist of a single commit. So it would be great if you could squash the commits in this PR, here is a guide (that duianto wrote for me when I also had too many commits :). I am not sure if you know about this section in the github wiki (just mentioning it).

Generally when you add something to your PR (or any commit you would like to 'extend'), then you can add changes to the last commit by typing in magit either ce, to add without changing the commit message, or ca, to add and also change the commit message (see here).

After you have modified commits with ce or ce that you had already pushed, then generally you must force push those changes (to force github to overwrite the history). From magit use p -f p.

Co-authored-by: Lucius Hu <1222865+lebensterben@users.noreply.github.com>
@KjartanOli
Copy link
Contributor Author

@dalanicolai Thanks for the links. It should all be squashed now.

Copy link
Collaborator

@smile13241324 smile13241324 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Manually merged but noticed an issue with starting emacs without having org-roam configured.
I have fixed this during the merge in 5fd1976.

Next time please take some more time to test your PR before submitting.

@smile13241324
Copy link
Collaborator

Thank you for contributing to spacemacs 💜, I have cherry picked your commit into develop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants