Skip to content

mode support? #163

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

Open
aperomsik opened this issue Mar 19, 2020 · 1 comment
Open

mode support? #163

aperomsik opened this issue Mar 19, 2020 · 1 comment
Labels
question this is a question, not a bug

Comments

@aperomsik
Copy link

This extension seems useful for editing wiki text in gitlab, which now supports org-mode as a wiki format but not really for preview.

If I have the cursor in the wiki edit box I can push the emacs button in the toolbar and it does give me a window with the text I can edit... but at the moment I have to enter M-x org-mode myself. Perhaps the text box or something else on the page (like the format selector) can be used to tell the server that emacs should use org-mode for this text?

@stsquad stsquad added the question this is a question, not a bug label Mar 19, 2020
@stsquad
Copy link
Owner

stsquad commented Mar 19, 2020

In the Emacs edit-server there is a variable call edit-server-url-major-mode-alist which contains an alist of url regex and mode selectors. You can use this to select the default major mode depending on the URL the textarea was on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question this is a question, not a bug
Projects
None yet
Development

No branches or pull requests

2 participants