Skip to main content

Questions tagged [multiple-modes]

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

0 votes
2 answers
527 views

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 ...
Microsoft Linux TM's user avatar
2 votes
0 answers
232 views

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-...
licorna's user avatar
  • 237
0 votes
0 answers
65 views

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 ...
Erik Bennett's user avatar
2 votes
1 answer
1k views

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 ...
NeuronQ's user avatar
  • 135
5 votes
1 answer
423 views

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 ...
Nathaniel J. Smith's user avatar
7 votes
1 answer
936 views

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 ...
student's user avatar
  • 1,199