On Feb/16, Jeffrey Ratcliffe wrote:
> > I certainly can't reproduce it here, after putting the 4 lines below in
> > my org-mode-hook (you're doing that too, as opposed to running it at the
> > toplevel of your .emacs, right ?): everything went fine with perl-mode.
> 
> No. Please enlighten me - as a search with a famous search engine
> failed to give me any examples.

Here's how I do it (YMMV):

  (defun my-org-mode-hook ()
    (require 'org-crypt)
    (org-crypt-use-before-save-magic)
    (setq org-crypt-key "[email protected]")
    (add-hook 'before-save-hook 'org-encrypt-entries)
    ;; then
    ;;  other
    ;;   org-specific
    ;;    settings
  )
  (add-hook 'org-mode-hook 'my-org-mode-hook)

More info at http://orgmode.org/org.html#Hooks, or by searching for
"dotemacs org-mode-hook" on the web.

Cheers,

--Seb



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Reply via email to