How can I have a portable Emacs?

时光总嘲笑我的痴心妄想 提交于 2019-11-26 23:59:41

问题


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.


回答1:


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.)

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

 (info "(emacs) Windows HOME")

on how to do that.




回答2:


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.




回答3:


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




回答4:


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

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

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



回答5:


I have ported emacs to portable apps format.

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



来源:https://stackoverflow.com/questions/350345/how-can-i-have-a-portable-emacs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!