But, don't panic first. Emacs 23 and org-mode have provided things to secure your data. Normally, I put my very personal data in a separated file and you can make Emacs encrypt it automatically when saving it. All you need to do is to
- Load EasyPG in your environment.
(require 'epa) (epa-file-enable)
- Rename your personal file with .gpg as its extension
- Add the following lines to the beginning of the personal file
-*- mode: org; epa-file-encrypt-to: ("yenliangl@gmail.com") -*-
Second, what if you don't encrypt the whole file? You merely want some header sections encrypted. That's ok. The org-mode provides another module to do this for you - org-crypt. Here is my settings,
(require 'org-crypt) (org-crypt-use-before-save-magic) (setq org-tags-exclude-from-inheritance (quote ("crypt"))) (setq org-crypt-key "0C6F5345") ;; yenliangl@gmail.comThe header sections with tag crypt are encrypted when you save the file. If you don't like this tag, go on to check out org-crypt.el for command to change it.