windows 我怎样才能拥有便携式 Emacs?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/350345/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 11:43:06  来源:igfitidea点击:

How can I have a portable Emacs?

windowsemacstext-editorportabilityportable-applications

提问by Ray

Is there a way run Emacs from a USB drive? I am a Windows user and I would like to be able use it on any PC without an Emacs install.

有没有办法从 USB 驱动器运行 Emacs?我是 Windows 用户,我希望能够在没有安装 Emacs 的任何 PC 上使用它。

回答by ShreevatsaR

Yes, the "normal" Emacs distribution for Windows is precompiled and just runs without having to do any install. Just get one of the *.zip files from the usual place, unpack it onto a USB disk, and you can use it directly. (The actual binary is inside the "bin/" directory.)

是的,Windows 的“普通”Emacs 发行版是预编译的,无需安装即可运行。只需从常用的地方获取一个*.zip 文件,将其解压到U 盘上,您就可以直接使用它。(实际的二进制文件在“bin/”目录中。)

The only thing you may want to do is set it up to look for ".emacs" always on the USB disk instead of on your hard drive; see

您可能唯一想做的就是将它设置为始终在 USB 磁盘上而不是在您的硬盘上查找“.emacs”;看

 (info "(emacs) Windows HOME")

on how to do that.

关于如何做到这一点。

回答by link0ff

You can read Emacs-related pages at PortableApps.com, and if they have not yet ported Emacs to their set of portable applications, then please ask them kindly to add Emacs to the list of text editors. With enough requests they will do this eventually.

您可以在 PortableApps.com 上阅读与 Emacs 相关的页面,如果他们还没有将 Emacs 移植到他们的便携式应用程序集中,那么请恳请他们将 Emacs 添加到文本编辑器列表中。如果有足够多的请求,他们最终会这样做。

回答by ScoBe

There is a beta version of a Portable Apps version of emacs 23.2 here.Initial test works fine here.

这里有 emacs 23.2 的便携式应用程序版本的测试版初始测试在这里工作正常。

回答by sayth

create a directory in the root of your usb drive called home.

在 USB 驱动器的根目录中创建一个名为 home 的目录。

create site-start.el in the site-lisp folder and then copy this and you are all set to go.

在 site-lisp 文件夹中创建 site-start.el 然后复制它,你就可以开始了。

(defvar %~dp0 (substring data-directory 0 3)) (defvar usb-home-dir (concat %~dp0 "home/"))
(setenv "HOME" usb-home-dir)

回答by sayth

I have ported emacs to portable apps format.

我已将 emacs 移植到便携式应用程序格式。

http://esnm.sourceforge.net/download.html

http://esnm.sourceforge.net/download.html