[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Re: Suggestion to add hook to be run when org-indent complet
|
From: |
Ihor Radchenko |
|
Subject: |
Re: [PATCH] Re: Suggestion to add hook to be run when org-indent completes a buffer's initialization |
|
Date: |
Tue, 02 Jan 2024 11:15:02 +0000 |
dark.key8799@151e.ai writes:
>> I do not see why we shouldn't add such a hook. Patches welcome!
>
> Would this work?
Yes, but please address some minor comments.
> +(defcustom org-indent-post-buffer-init-hook nil
> + "Hook run after org-indent finishes initializing a buffer.
> +The function(s) in in this hook must accept a single argument representing
> +the initialized buffer."
> + :group 'org-indent
> + :type 'hook)
By convention, abnormal hooks (hooks that require arguments) are named
as *-functions, not *-hook.
Also, when adding new customizations, we generally announce them in
etc/ORG-NEWS.
--
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>