From: Richard Riley <rileyrgdev@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: org-encrypt-entries seems to break perl- and cperl-mode
Date: Tue, 19 Jan 2010 19:38:49 +0100 [thread overview]
Message-ID: <hj4u7o$2v2$1@ger.gmane.org> (raw)
In-Reply-To: 26E21E93-84E6-40DA-B87D-52EDC8A4A193@gmail.com
Carsten Dominik <carsten.dominik@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 "rgr@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?
next prev parent reply other threads:[~2010-01-19 18:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-18 21:00 org-encrypt-entries seems to break perl- and cperl-mode Jeffrey Ratcliffe
2010-01-19 15:10 ` Carsten Dominik
2010-01-19 18:38 ` Richard Riley [this message]
2010-01-19 19:15 ` Matt Lundin
2010-01-24 12:02 ` Jeffrey Ratcliffe
2010-02-16 20:18 ` Jeffrey Ratcliffe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='hj4u7o$2v2$1@ger.gmane.org' \
--to=rileyrgdev@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).