Questions tagged [multiple-modes]

Editing mixed-content files with multiple major modes in the same buffer

Filter by
Sorted by
Tagged with
7
votes
1answer
490 views

Multiple major modes in one buffer (e.g., python-mode & LaTeX-mode)

Using the LaTeX-package pythontex I one can insert python code into the latex document which is executed (and printed to your latex file if you want) if you run latex. I use auctex for editing latex ...
5
votes
1answer
213 views

Ergonomic way to edit source code inside ReST or Markdown code blocks?

I often find myself writing ReST files with embedded source code examples (e.g. in .. code:: blocks or GFM-style triple-backticks; usually the embedded source code is Python). And this is always an ...
2
votes
1answer
350 views

Custom theme based on major mode or file type

How can I customize emacs to use a different theme based on major mode or file-type? And, could it work to have different themes active in different windows? My use case would be: have (1) one ...
0
votes
0answers
41 views

Is there a way to have multiple modes in one buffer? [duplicate]

This is kind of a weird question, but I have a file that's a mix of perl, text, and Bourne shell. Is there some (easy) way to have emacs switch major modes at different points in the file? Perhaps ...