Questions tagged [multiple-modes]
Editing mixed-content files with multiple major modes in the same buffer
11 questions
0 votes
2 answers
527 views
enable counsel-projectile by default
I want to enable counsel-projectile-mode by default. I have added (counsel-projectile-mode) to .emacs file as per project's usage guide but it doesn't work; meaning projectile still uses ido for ...
2 votes
0 answers
232 views
Edit a portion of YAML file (a multi-line string) with a different mode
I'm constantly editing a big yaml file with many multi-line strings, which are BASH scripts. In org-mode I would use something like: #+begin_src sh echo "cool" #+end_src And then just to C-c ' (org-...
0 votes
0 answers
65 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 ...
2 votes
1 answer
1k 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 ...
5 votes
1 answer
423 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 ...
7 votes
1 answer
936 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 ...