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 "sdelaf...@gmx.net")
    (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 debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20100216190646.gj7...@frisco.mine.nu

Reply via email to