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.

up vote 1 down vote accepted

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)

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.