I think that typically you load a library, then run a function to add stuff to hooks. That way, loading the library does not have side-effects. Some packages use the term "insinuate".
I'd opt for a default of always encrypting when saving and only decrypting when manually done. Maybe a little note in the properties drawer can tell the user how to do this? On Mon, May 18, 2009 at 09:40, Peter Jones <mli...@pmade.com> wrote: > Sorry for the delays in getting this posted, I've been doing a lot of > traveling lately. > > The attached version of org-crypt fixes a few bugs and is just about > ready to be included in org proper. The only thing it might need before > inclusion in org is automatic encryption via hooks. > > I'd like to find out how people feel about that. Should org-crypt > attach itself to org-mode-hook so that it can decrypt encrypted entries > after you open an org file? At first I thought yes, but now I'm leaning > towards no, you should decrypt entries manually as needed. > > I do think that org-crypt should hook itself into before-save-hook so > that all entries that *should* be encrypted are encrypted before the > file touches the disk. A user of org-crypt shouldn't have to worry > about setting up a hook, it should just happen automatically. > > Any suggestions on the best way to make that happen in org-crypt? > > > > -- > Peter Jones, http://pmade.com > pmade inc. Louisville, CO US > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > -- Myalgic encephalomyelitis denialism is causing death and severe suffering worse than MS. Conflicts of interest are destroying research. /You/ can get the disease at any time permanently. Do science and justice matter to you? Posters: http://www.mefreeforall.org/fileadmin/PDFs/ME_Awareness_Posters_2009.pdf Overview: http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode