I'm trying to customize the
fill-column value for
org-add-note when adding notes to an Org TODO (e.g.,
I have tried to add the following to the
org-add-note function (this seems reasonable from the
(add-hook #'org-add-note (lambda () (setq fill-column 72)))
However, it doesn't seem to work, I get the following in the
Fill column set to 79 (was 70)
Since it was 70 and no other messages indicating otherwise, this tells me it was never 72, which means there's nothing else in my configuration overriding the hook value.
Setting the global
fill-column won't work since this customization is to work around Org-mode indenting the notes in the drawers of the TODO, which takes off about 5 spaces already. That is, setting a custom
fill-column value for any buffer in
Org mode doesn't solve the problem.
Perhaps the solution is have a function that checks the buffer name? If the buffer name is "
*Org Note*" in
Org mode, set to
fill-column to 72, otherwise, leave it alone or use the "default".
Any help is much appreciated!