Re: [O] how to use org-crypt with different key per file or node?

2018-05-05 Thread stardiviner
Can let this property CRYPTKEY support interactive select keys from minibuffer?

Manully input is not an good choice obviously.

How to let org-mode property auto prompt for a list of keys after
inserted property key "CRYPTKEY"?

--
[ stardiviner ] don't need to convince with trends.
   Blog: https://stardiviner.github.io/
   IRC(freenode): stardiviner
   GPG: F09F650D7D674819892591401B5DF1C95AE89AC3



Re: [O] how to use org-crypt with different key per file or node?

2018-04-27 Thread Nicolas Goaziou
Bastien  writes:

> Gregor Zattler  writes:
>
 +#+begin_src emacs-lisp
 +  * totally secret :crypt:
>
> PS: I guess this should have been "#+begin_src org" instead.

Actually, we settled on "#+begin_example" instead, because of
fontification issues.

Fixed. Thank you.



Re: [O] how to use org-crypt with different key per file or node?

2018-04-27 Thread Bastien
Gregor Zattler  writes:

>>> +#+begin_src emacs-lisp
>>> +  * totally secret :crypt:

PS: I guess this should have been "#+begin_src org" instead.

-- 
 Bastien



Re: [O] how to use org-crypt with different key per file or node?

2018-04-27 Thread Gregor Zattler
Hi Nicolas, org-mode users,
* Nicolas Goaziou  [2018-04-27; 15:13]:
> Gregor Zattler  writes:
>> +It's possible to use different keys for different headings by
>> +specifying the respective key as property CRYPTKEY, e.g.:
>
> I used =CRYPTKEY= instead of CRYPTKEY, as it is meant to be written in
> an Org document.

sorry

>> +#+begin_src emacs-lisp
>> +  * totally secret :crypt:
>
> There was a missing comma in front of the headline.

Indentation is not enough!?  Is there a document describing how
to contribute to org-manual.org?


Ciao; Gregor
-- 
 -... --- .-. . -.. ..--.. ...-.-




Re: [O] how to use org-crypt with different key per file or node?

2018-04-27 Thread Nicolas Goaziou
Hello,

Gregor Zattler  writes:

> Hi org-mode users and developers,
>
> Marco Wahl helped me with this: As always the solution is
> already there in org-mode.  Attached you find a patch in
> order to document this feature.

Thank you.

> +It's possible to use different keys for different headings by
> +specifying the respective key as property CRYPTKEY, e.g.:

I used =CRYPTKEY= instead of CRYPTKEY, as it is meant to be written in
an Org document.

> +#+begin_src emacs-lisp
> +  * totally secret :crypt:

There was a missing comma in front of the headline.

I applied your patch with the changes above.

Regards,

-- 
Nicolas Goaziou



Re: [O] how to use org-crypt with different key per file or node?

2018-04-27 Thread Gregor Zattler
Hi org-mode users and developers,

Marco Wahl helped me with this: As always the solution is
already there in org-mode.  Attached you find a patch in
order to document this feature.

>From be08948c331118e2c66b858dc3133d3e44bfff69 Mon Sep 17 00:00:00 2001
From: Gregor Zattler 
Date: Fri, 27 Apr 2018 14:17:05 +0200
Subject: [PATCH] doc/org-manual.org: Document CRYPTKEY property

TINYCHANGE
---
 doc/org-manual.org | 10 ++
 1 file changed, 10 insertions(+)

diff --git a/doc/org-manual.org b/doc/org-manual.org
index e670c387f..76f061709 100644
--- a/doc/org-manual.org
+++ b/doc/org-manual.org
@@ -19180,6 +19180,16 @@ Here is a suggestion for Org Crypt settings in Emacs init file:
 ;; # -*- buffer-auto-save-file-name: nil; -*-
 #+end_src
 
+It's possible to use different keys for different headings by
+specifying the respective key as property CRYPTKEY, e.g.:
+
+#+begin_src emacs-lisp
+  * totally secret :crypt:
+:PROPERTIES:
+:CRYPTKEY: 0x0123456789012345678901234567890123456789
+:END:
+#+end_src
+
 Excluding the =crypt= tag from inheritance prevents already encrypted
 text from being encrypted again.
 
-- 
2.11.0



* Gregor Zattler  [2018-04-26; 16:09]:
> I use org-crypt for different org files.  Till now I follow the
> documentation and specify the one and only key to use via
> (setq org-crypt-key "0xdeadbeef") for all org files and their
> headings.
>
> Is it possible to specify different keys for different files or
> even better for different headings?

Ciao; Gregor

-- 
 -... --- .-. . -.. ..--.. ...-.-


Re: [O] how to use org-crypt with different key per file or node?

2018-04-26 Thread Marco Wahl
Gregor Zattler  writes:

> Dear org-mode users and developers,
>
> I use org-crypt for different org files.  Till now I follow the
> documentation and specify the one and only key to use via
> (setq org-crypt-key "0xdeadbeef") for all org files and their
> headings.
>
> Is it possible to specify different keys for different files or
> even better for different headings?
>
>
> Ciao; Gregor

AFAICT there is property CRYPTKEY for that.  Possibly this has been
forgotten in the info documentation for org.

Example:

* totally secret :crypt:
:PROPERTIES:
:CRYPTKEY: 0x0123456789012345678901234567890123456789
:END:


HTH




[O] how to use org-crypt with different key per file or node?

2018-04-26 Thread Gregor Zattler
Dear org-mode users and developers,

I use org-crypt for different org files.  Till now I follow the
documentation and specify the one and only key to use via
(setq org-crypt-key "0xdeadbeef") for all org files and their
headings.

Is it possible to specify different keys for different files or
even better for different headings?


Ciao; Gregor
-- 
 -... --- .-. . -.. ..--.. ...-.-