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

Changing major mode in block editing window resets the window #11

Open
lijunsong opened this issue Aug 2, 2016 · 2 comments
Open

Changing major mode in block editing window resets the window #11

lijunsong opened this issue Aug 2, 2016 · 2 comments

Comments

@lijunsong
Copy link
Owner

lijunsong commented Aug 2, 2016

Currently C-c ' closes the special block editing window.

Changing major mode in the window cleans keybindings and the header, and C-c ' doesn't work after mode changes.

@odanoburu
Copy link
Contributor

do you have a solution in mind? I thought of prompting the user for a major mode, which would then be invoked, and after that the window would be set up (which might be what org-mode does?). I didn't see your code yet, though.

we could also implement some kind of cache to offer better default modes to the user, or have the user specify the major mode with something like:

◊code{◊; mode: elisp
(+ 1 1)
    } 

@lijunsong
Copy link
Owner Author

@odanoburu yea, I think I kinda know what to do, just need to take some time to implement it.

Instrument like ◊; mode: won't work well in general. It might work for code snippet, but the text feels like containing a lot of accidental complexity in it.

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

No branches or pull requests

2 participants