diff --git a/sops.el b/sops.el index 57c62ba..e18a70b 100644 --- a/sops.el +++ b/sops.el @@ -4,7 +4,7 @@ ;; Author: Jonathan Carroll Otsuka ;; Keywords: convenience, programming -;; Version: 0.1.6 +;; Version: 0.1.7 ;; Package-Requires: ((emacs "28.1")) ;; Homepage: http://github.com/djgoku/sops ;; Keywords: convenience files tools sops encrypt decrypt @@ -131,9 +131,11 @@ (let ((encrypted-buffer-contents (buffer-string)) (original-file-name sops--original-buffer-file-name)) (switch-to-buffer sops--original-buffer-name) + (read-only-mode -1) (erase-buffer) (insert encrypted-buffer-contents) (save-buffer) + (read-only-mode) (sops--clean-up-buffers original-file-name)) (sops--clean-up-buffers (buffer-file-name)))) (message "no changes were made to file, closing buffer")