Closed quantumgc closed 2 years ago
I've just realised that the default behaviour of org-journal-mode-hook
should probably be mentioned in the documentation. I'll make that addition and update this PR.
I've also noted that the anonymous function
(lambda () (add-hook org-journal-encrypt-on
'org-journal-encryption-hook
nil t))
is added to the hook directly afterwards using an add-hook
call. I don't think that function can be removed using the remove-hook
interface so should it be added to the defcustom
call too?
I've also noted that the anonymous function
(lambda () (add-hook org-journal-encrypt-on 'org-journal-encryption-hook nil t))
is added to the hook directly afterwards using an
add-hook
call. I don't think that function can be removed using theremove-hook
interface so should it be added to thedefcustom
call too?
Good idea!
(come to think of it, org-journal-encryption-hook has the same problem. But I don't know if we can change that without breaking existing functionality.)
I feel like there's also some confusion with org-journal-encrypt-on
pointing to an actual hook so that might need to be renamed too (though at that point it feels like it needs a a separate issue/PR).
Thank you very much!
turn-on-visual-line-mode
calldefcustom
definition fororg-journal-mode-hook
visual-line-mode
toorg-journal-mode-hook