Is there a way to set the display margins for markdown-mode buffers? I've read https://www.gnu.org/software/emacs/manual/html_node/elisp/Display-Margins.html and various suggested solutions but nothing has worked for me. This is what I have currently:
(defun my-margins () (set-window-margins (selected-window) 30 30)) (add-hook 'markdown-mode-hook 'my-margins) However, nothing happens when I open a .md file. If I evaluate (my-margins) manually, however, then I get the desired result, until I switch to a different buffer, and then the margins are lost.
Ideally, I would like all markdown-mode buffers to have the desired display margins, regardless of whether I open a new frame, switch buffers, etc.
visual-fill-column-center-textfeature from visual-fill-column allows you to do it very easily. @jth