Carsten Dominik <carsten.domi...@gmail.com> writes: > Hi Jeffrey, > > indeed you need to make sure that this hook runs only in Org-mode files. > This is automatically done by calling > > (org-crypt-use-before-save-magic) > > after loading org-crypt.el. > > Internally, this achieves it's goal by installing > a function into `org-mode-hook', which will then install > a function into the buffer-local version of before-save-hook. > > This information is also > given in the file commentary in org-crypt.el, but I think > we should get this info also into WOrg, or maybe even > into the manual. I'd be happy to accept a patch in > this direction. > > Hope this helps
A quick note to say how wonderful this mode is. I had been using a .gpg file with the mode in a file variable. This thread pushed me to try org-crypt. Amazingly good and well thought out! ,---- | (require 'org-crypt) | (org-crypt-use-before-save-magic) | (setq org-crypt-key "r...@richardriley.net") `---- And encryption "just works" when I add the tag :crypt:. The only slight hiccup I saw was that when I added the crypt tag to another element in another org file and saved it, it did not encrypt that after the initial encryption of the first file I had tagged. When I restarted emacs and rewrote it it did. Which brings up my next query : when does org reread tags? I added a filetag (#+FILETAGS) to an open org file and saved it but the agenda match did not find it. How can I force a refresh of the tags buffer when I save a file? _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode