From e9b8bad51d6cb3d55dabd56229ffd42f24498be6 Mon Sep 17 00:00:00 2001 From: James Cherti <60946298+jamescherti@users.noreply.github.com> Date: Sat, 23 Nov 2024 23:43:10 -0500 Subject: [PATCH] Set make-window-start-visible to t to enhance user experience --- outline-indent.el | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/outline-indent.el b/outline-indent.el index 2016630..89bcd40 100644 --- a/outline-indent.el +++ b/outline-indent.el @@ -133,6 +133,12 @@ display table). To apply the change, you need to execute :type '(choice string (const nil)) :group 'outline-indent) +(defcustom outline-indent-make-window-start-visible t + "Non-nil to ensure `window-start' is never invisible. +This sets the buffer local variable `make-window-start-visible'." + :type 'boolean + :group 'outline-indent) + (defcustom outline-indent-advise-outline-functions t "If non-nil, advises built-in `outline' functions to improve compatibility. It is highly recommended to keep `outline-indent-advise-outline-functions' @@ -403,6 +409,10 @@ This mode sets up outline to work based on indentation." (not (any " \t\n")))) (outline-indent--update-ellipsis) + ;; Ensures that window-start is never invisible + (setq-local make-window-start-visible + outline-indent-window-start-visible) + (when outline-indent-advise-outline-functions ;; Advise the built-in `outline-mode' and `outline-minor-mode' ;; functions to improve compatibility with