Reputation: 437
I have a plaintext file named ~/.z
but when I open it with emacs --no-init-file
, I get a blank buffer and a buffer named *jka-compr-error* which states
Error while executing "gzip -c -q -d < /home/username/.z"
gzip: stdin: not in gzip format
How can I open this file in emacs?
Upvotes: 2
Views: 210
Reputation: 6402
Use find-file-literally
. It does no conversions and it does not use the auto-mode-alist
to set the major mode: it uses fundamental-mode
instead.
Upvotes: 2
Reputation: 2482
Turn off auto-compression-mode
in your .emacs
file: (auto-compression-mode 0)
, and try again.
Upvotes: 1
Reputation: 39
.z is an unix compression file extension.
So probably you cant open it. But you can always extract it but i think extracting would not be the case here since you said thats a plaintext file.
Upvotes: 0