hexl-find-file
gzip されたファイルを開き、内容を 16 進モードで表示する同様の関数を作成したいと考えています。どうすればいいですか?
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 に答える