I am investigating using org-crypt in some of my files. In my .emacs I have:
#+BEGIN_SRC emacs-lisp
(require 'org-crypt)
(org-crypt-use-before-save-magic)
(setq org-tags-exclude-from-inheritance (quote ("crypt")))
; GPG key to use for encryption
(setq org-crypt-key "MyKey")
#+END_SRC
When I start Emacs I get:
Warning (initialization): An error occurred while loading
`/home/ian/.emacs':
Symbol's function definition is void: org-crypt-use-before-save-magic
To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file. Start Emacs with
the `--debug-init' option to view a complete error backtrace.
The corresponding backtrace is:
Debugger entered--Lisp error: (void-function
org-crypt-use-before-save-magic)
(org-crypt-use-before-save-magic)
eval-buffer(#<buffer *load*<2>> nil "/home/ian/.emacs.d/blacky.el"
nil t) ; Reading at buffer position 28453
load-with-code-conversion("/home/ian/.emacs.d/blacky.el"
"/home/ian/.emacs.d/blacky.el" nil nil)
load("/home/ian/.emacs.d/blacky.el" nil nil t)
load-file("~/.emacs.d/blacky.el")
org-babel-load-file("~/.emacs.d/blacky.org")
eval-buffer(#<buffer *load*> nil "/home/ian/.emacs" nil t) ;
Reading at buffer position 208
load-with-code-conversion("/home/ian/.emacs" "/home/ian/.emacs" t t)
load("~/.emacs" t t)
#[nil "\205\264
I am using a recent git checkout.
I notice that org-crypt isn't documented in the manual and there is an
old message from Carsten asking for someone to document it. If I can get
it working I'll promise to document it:) Also I'll write something about
using ssh agent with org an Emacs, a topic that has cuased me some head
scratching recently.
Ian.