Variable: markdown-split-window-direction

markdown-split-window-direction is a customizable variable defined in markdown-mode.el.

Value

any

Documentation

Preference for splitting windows for static and live preview.

The default value is 'any, which instructs Emacs to use split-window-sensibly to automatically choose how to split windows based on the values of split-width-threshold and split-height-threshold and the available windows. To force vertically split (left and right) windows, set this to 'vertical or 'right. To force horizontally split (top and bottom) windows, set this to 'horizontal or 'below.

If this value is 'any and display-buffer-alist is set then display-buffer is used for open buffer function

This variable was added, or its default value changed, in markdown-mode version 2.2.

Source Code

;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defcustom markdown-split-window-direction 'any
  "Preference for splitting windows for static and live preview.
The default value is \\='any, which instructs Emacs to use
`split-window-sensibly' to automatically choose how to split
windows based on the values of `split-width-threshold' and
`split-height-threshold' and the available windows.  To force
vertically split (left and right) windows, set this to \\='vertical
or \\='right.  To force horizontally split (top and bottom) windows,
set this to \\='horizontal or \\='below.

If this value is \\='any and `display-buffer-alist' is set then
`display-buffer' is used for open buffer function"
  :group 'markdown
  :type '(choice (const :tag "Automatic" any)
                 (const :tag "Right (vertical)" right)
                 (const :tag "Below (horizontal)" below))
  :package-version '(markdown-mode . "2.2"))