-
Notifications
You must be signed in to change notification settings - Fork 7
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
wrong port while using org-mode #21
Comments
I tested on my macbook, and it works well. I don't understand what's your problem. |
Thank you for your contribution to open source. =) Let me elaborate the problem: Under markdown modeTime 0: Time 1: Under org-modeTime 0: Time 1: |
No. The port won't be changed unless the grip process is restarted. |
Yes, the back end port that serve for org is still the port 10000, but the problem is, each time I press C-x C-s to save org file, it will open a new tab with different port number. Also an interesting phenomenon I did see is, while I try to open an org file, the browser page will show server unavailable for one second, and then display the content. |
I think you should figure out why a new tab will be displayed while saving the org buffers. Can you reproduce the issue with
It's as expected since grip process may not be started completely at that moment. |
With -Q, the browser doesn't even start when I load markdown/org file. |
With -Q, you also need to load the necessary packages, like grip-mode, markdown, etc. |
I encountered the same issue using hooks, and after I set my init file to
The issue fades away. (Actually I like the bind key better, cuz for reveal and my init.org, I do not really want to preview them.) |
@seagle0128 Also may I ask what you mean that
in README? How could I combine ox-gfm with this?(sorry I am green in emacs) You seems already used
in your code? Is that already something from ox-gfm? |
@FloraSun9101 You can install My configuration is here: https://github.com/seagle0128/.emacs.d/blob/master/lisp/init-org.el#L171. |
@seagle0128 Thanks for the fast reply! The way you organized the emacs config is neat! I do not think My setup for
|
@FloraSun9101 You should check |
macOS 11.6.1, with Emacs 27.2.
When using grip-mode with markdown, everything work smooth and fine.
While using org-mode, the browser will start the preview correctly in opening. After that, each time I press C-x C-s to save the change, it will open another web page with a new random port, but the connection is failed.
The saved content could be checked by manually refreshing the page, which is created when the org file open.
The text was updated successfully, but these errors were encountered: