> On Feb 1, 2018, at 9:07 PM, ed...@openmail.cc wrote: > > Is there a safe way to change mode in an org-edit-special buffer?
The safest thing would be to customize `org-src-lang-modes' so the buffer is created with the mode you want to edit in. Or if you want to edit in that mode only occasionally write a small function that let-binds `org-src-lang-modes` to the value you need and use that function as needed to create the buffer in that mode. As far as changing major mode while already editing, the responses here might help: https://emacs.stackexchange.com/questions/21940/avoid-minor-modes-from-turning-off-when-changing-restarting-major-mode HTH, Chuck