From 2a166c2dbdb9f0406828f44827f109d0fb8a187f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Thu, 14 May 2026 09:35:38 +0100 Subject: [PATCH] Eldoc: display documentation in visual-line-mode Documentation is overwhelmingly prose and intended to be viewed, not edited. Using visual-line-mode allows members of 'eldoc-doc-functions' to provide long lines that correctly fill to the window width. * lisp/emacs-lisp/eldoc.el (eldoc--format-doc-buffer): Use visual-line-mode. --- lisp/emacs-lisp/eldoc.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/emacs-lisp/eldoc.el b/lisp/emacs-lisp/eldoc.el index 77ff567954f..55f9fb1988b 100644 --- a/lisp/emacs-lisp/eldoc.el +++ b/lisp/emacs-lisp/eldoc.el @@ -530,6 +530,7 @@ If INTERACTIVE, display it. Else, return said buffer." (things-reported-on)) (special-mode) (erase-buffer) + (visual-line-mode) (setq-local nobreak-char-display nil) (cl-loop for (docs . rest) on docs for (this-doc . plist) = docs