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 variable for default darkmode and default preview #137

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tefkah
Copy link
Collaborator

@tefkah tefkah commented Feb 21, 2021

Pull request to solve #92, adds an option to set a variable called org-roam-server-default-darkmode, which if set to t will always toggle darkmode when the server starts, regardless of cookies set.

The second pull commit adds the option to set a variable called org-roam-server-default-preview, which if set to t will enable preview by default, to solve #134.

The latter does work a bit janky though, as it does not yet change the text or state of the preview button, but this is remedied when the Enable Preview button is pressed once.

Also they are two different AJAX calls and functions at the moment, ideally all these settings would only require a single one of course.

Apologies for the possibly somewhat sloppy code, I'm rather new to elisp.

@tefkah tefkah changed the title Add variable for default darkmode Add variable for default darkmode and default preview Feb 21, 2021
@goktug97
Copy link
Member

Hello, thanks for the pull request, I will try it when my exams are done and I have some time.

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.

2 participants