我目前正在尝试Cygwin。我正试图让emacs在终端模式下打开。当我用Cygwin shell运行$ emacs -nw
时。我得到bash: emacs: command not found
。如果有帮助的话,我正在运行Windows Vista SP2。我认为你需要编辑环境变量,但我不知道该怎么做。
请帮忙!如有任何建议,不胜感激。
提前感谢!
更新:
-
这是当我运行
$ echo $PATH
时出现的内容:$ echo $PATH
/usr/local/bin:/usr/bin:/cygdrive/c/Program Files/Common Files/Microsoft Shared/Windows Live:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Program Files/Common Files/Adobe/AGL:/cygdrive/c/Program Files/ATI Technologies/ATI.ACE/Core-Static:/cygdrive/c/Program Files/Common Files/Roxio Shared/10.0/DLLShared:/cygdrive/c/Program Files/Common Files/RoxioShared/DLLShared:/cygdrive/c/Program Files/Common Files/Roxio Shared/10.0/DLLShared:/cygdrive/c/Program Files/Intel/WiFi/bin:/cygdrive/c/Program Files/Common Files/Intel/WirelessCommon:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files/Common Files/Ulead Systems/MPEG:/cygdrive/c/Program Files/Windows Live/Shared:/cygdrive/c/Program Files/QuickTime/QTSystem:/cygdrive/c/Program Files/Microsoft SQL Server/100/Tools/Binn:/cygdrive/c/Program Files/Microsoft SQL Server/100/DTS/Binn:/cygdrive/c/Program Files/gtk2/bin:/cygdrive/c/Program Files/mlt/bin:/cygdrive/c/Program Files/Intel/WiFi/bin:/cygdrive/c/Program Files/Common Files/Intel/WirelessCommon:/cygdrive/c/Python27:/cygdrive/c/Program Files/Console:/cygdrive/c/Program Files/OpenLibraries/bin
如果你想使用emacs -nw
,我很确定你将需要安装cygwin emacs(使用cygwin安装程序)。
如果你想在Windows上使用其他emacs(我不认为-nw
会工作),那么你需要将该emacs的路径添加到你的path中,例如
export PATH=${PATH}:/cygdrive/c/Program Files/<path_to_emacs_dir>.
如果你希望它是永久的,那么你可以把它添加到你的"。bashrc"文件(.