2

Using markdown-mode, I can run M-x markdown-live-preview-mode (or C-c C-c l) and it will split the window horizontally and display the rendered markdown (i.e. the HTML) with eww in a window below the markdown text window. How can I get this command to instead split the window vertically so that the markdown and rendered output are side by side? I'd like to avoid having to manually toggle the window split.

1 Answer 1

2

After reading Window Choice in the emacs documentation, I was able to get the desired behaviour by setting split-height-threshold to nil. I added this to my .emacs file:

(setq split-height-threshold nil) 
1
  • Hmm I did this but nothing happened. Was there something else you had to add to your .emacs file? Was this the only line? Commented Nov 18, 2022 at 20:20

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.