Paste number 16485: My crypt++ settings in .emacs

Index of paste annotations: 1

Paste number 16485: My crypt++ settings in .emacs
Pasted by: anaran
When:6 years, 3 days ago
Share:Tweet this! | http://paste.lisp.org/+CPX
Channel:#xemacs
Paste contents:
Raw Source | XML | Display As
;;; APA:
;;; crypt is already loaded by sample.init.el, therefor we have to
;;; force loading crypt++ and rebuild the tables here!
(setq crypt-encryption-type 'gpg
      ;; Won't work!
      crypt-encryption-file-extension "\\.gpg\\(\\.~[.0-9]+~\\)?$"
      ;; crypt-encryption-file-extension nil
      crypt-encrypted-disable-auto-save t
      crypt-encoded-disable-auto-save nil
      crypt-bind-insert-file nil
      crypt-decode-dos-p nil
      crypt-decode-mac-p nil
      crypt-freeze-vs-fortran nil)
;;; FIXME: this is awkward, but I don't have time to think about this
;;; (2004-03-30):
(if (locate-library "crypt++")
    (load "crypt++"))
(crypt-rebuild-tables)
(crypt-bind-insert-file)
;; Needed, since setting crypt-encryption-file-extension in setq above
;; won't work.
(modify-coding-system-alist 'file "\\.gpg\\(\\.~[.0-9]+~\\)?$" 'binary)
; Cannot read in encrypted files without following line:
(modify-coding-system-alist 'process "gpg" 'binary)
; Cannot perform M-x ediff-revision on encrypted files without
; following line:

(setq crypt-auto-write-buffer t)
(setq crypt-no-extension-implies-plain nil)

Annotations for this paste:

Annotation number 1: correction
Pasted by: anaran
When:6 years, 3 days ago
Share:Tweet this! | http://paste.lisp.org/+CPX/1
Paste contents:
Raw Source | Display As
I forgot the crucial line after following comment on the original paste:

; Cannot perform M-x ediff-revision on encrypted files without
; following line:
(modify-coding-system-alist 'process "cvs" 'binary)

This is useful for CVS controlled gpg files, of which I have a few.

Adrian

Colorize as:
Show Line Numbers
Index of paste annotations: 1

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.