I am writing a document with Emacs. As you know, there are some code segments in the text file I'm working with. Usually, when I open this file, emacs automatically goes into text mode. And for me editing paragraphs works fine. But for those code segments, how could I put them off in gnu or linux style, exactly the same as what I could do in c-mode (c-set-style && make Ctrl-Alt- \ in a certain area) ?
By the way, I could turn the buffer into c-mode by calling Mx c-mode for this, however, I think there should be a lot of nice way in text mode.
source share