我想编写一个类似的函数,hexl-find-file
它将打开一个 gzip 压缩文件并以 hexl 模式显示内容。我该怎么做?
问问题
444 次
2 回答
2
这对你有用吗?
(require 'jka-compr)
(defun hexl-find-file ()
"call find file and then jump into hexl mode"
(interactive)
(call-interactively 'find-file)
(hexl-mode 1))
提供'jka-compr
无缝压缩文件处理,'hexl-find-file
只需打开文件并打开hexl-mode
.
于 2010-08-28T19:07:19.870 回答
0
在运行 hexl-find-file 之前打开自动压缩模式?
,----[ C-h f auto-compression-mode RET ]
| `auto-compression-mode' is an interactive compiled Lisp function
| -- loaded from "/usr/share/xemacs21/xemacs-packages/lisp/os-utils/auto-autoloads"
| (auto-compression-mode &optional ARG)
|
| Documentation:
| Toggle automatic file compression and uncompression.
| With prefix argument ARG, turn auto compression on if positive, else off.
| Returns the new status of auto compression (non-nil means on).
|
| Invoked with:
|
| M-x auto-compression-mode
`----
于 2010-08-28T21:08:39.410 回答