emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Re: org-encrypt-entries seems to break perl- and cperl-mode


From: Richard Riley
Subject: [Orgmode] Re: org-encrypt-entries seems to break perl- and cperl-mode
Date: Tue, 19 Jan 2010 19:38:49 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Carsten Dominik <address@hidden> 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 "address@hidden")
`----

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? 






reply via email to

[Prev in Thread] Current Thread [Next in Thread]