Zip-Archive模式适用于具有zip/unzip的系统.你如何让它在Wnidows上工作?
EMACS使用外部程序进行压缩/解压缩.它所需要的只是知道正确的程序使用.
一些扩展的讨论:
正如我所说,我没有Windows框,但LISP代码在arc-mode.el大约230行:
(defcustom archive-zip-extract
(if (and (not (executable-find "unzip"))
(executable-find "pkunzip"))
'("pkunzip" "-e" "-o-")
'("unzip" "-qq" "-c"))
"*Program and its options to run in order to extract a zip file member.
Extraction should happen to standard output. Archive and member name will
be added."
:type '(list (string :tag "Program")
(repeat :tag "Options"
:inline t
(string :format "%v")))
:group 'archive-zip)
Run Code Online (Sandbox Code Playgroud)
观察功能executable-find.它在您的EMACS中搜索exec-path,其中包括一些不在您的普通PATH变量中的EMACS可执行目录.就我而言,它是:
("/usr/bin"
"/bin"
"/usr/sbin"
"/sbin"
"/Applications/Emacs.app/Contents/MacOS/libexec"
"/Applications/Emacs.app/Contents/MacOS/bin"
"~/bin"
"/usr/local/bin"
"/usr/X11R6/bin")
Run Code Online (Sandbox Code Playgroud)
其中包括EMACS包中的两个目录.您的Windows安装将在EMACS设置的内部某处包含等效目录.如果可执行文件不在您的常规路径中,那就是在哪里查找.
您可以从此站点下载pkunzip ,安装它,并添加安装路径(add-to-list 'exec-path "c:/path/to/pkunzip")
| 归档时间: |
|
| 查看次数: |
2700 次 |
| 最近记录: |