emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Suggestion to add hook to be run when org-indent completes a buffer'


From: Ihor Radchenko
Subject: Re: Suggestion to add hook to be run when org-indent completes a buffer's initialization
Date: Sun, 31 Dec 2023 14:42:24 +0000

dark.key8799@151e.ai writes:

> Although there are some workarounds for the particular issue above, a cleaner 
> solution would be org-indent calling some hook at the end of the preparation. 
> As per link above, jdtsmith proposes to add such call in 
> org-indent-initialize-buffer:
>
>          ;; Job is complete: un-agentize buffer.
>        (unless interruptp
>          (setq org-indent-agentized-buffers
>                (delq buffer org-indent-agentized-buffers))
>            (run-hook-with-args 'org-indent-buffer-init-finished buffer)) ;; 
> <-- added

I do not see why we shouldn't add such a hook. Patches welcome!

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]