mode support?
aperomsik opened this issue · comments
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?
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.