the sound of nature

music c++ linux Qt4 .net Mingw

 

windosw 下 安装 eamcs

Installing Emacs on Windows 95/98/2K/NT/ME/XP

People have successfully installed emacs (version 21.3) on Windows 95, 98, 2K, NT, ME, and XP using the instructions below. Follow these steps to download Emacs for windows. There is no room for creativity here; you must follow the directions exactly. Please read every single word in this document.

    1.Pick the drive and a folder in which you want to install Emacs. I'll assume that it is C:\emacs, but you can choose a different one. If you choose a different drive or a different folder, you'll need to adapt the directions below accordingly.
   2.Create an empty folder C:\emacs. At the DOS prompt in the C: drive, type mkdir emacs.
3 Download emacs-21.3-bin-i386.tar.gz to C:\emacs\emacs-21.3-bin-i386.tar.gz by right-clicking on the link and using Save Link Target As... or Save Target As.... Or simply clicking on it would work as well here. It is about 13.2 megabytes. Make sure the entire file was downloaded without any network errors. The browser will save the file using the name that appears in the underlined link. (In some Windows XP machines it is known to use emacs-21.3-bin-i386.tar.tar instead as it downloads it. If that happens, change the name back to emacs-21.3-bin-i386.tar.gz before you continue.) At this point, you should have one file named emacs-21.3-bin-i386.tar.gz of about 13.2 megabytes in the C:\emacs folder. Check to be sure.

4Double click on that file using Windows Explorer to extract files from that archived file. Your extracted files should go into C:\emacs folder. Assuming that you have already installed a program that knows how to unpack these zipped files, you can double click on it to extract the files. In my case I have PowerArchiver installed on my machine and that gets invoked automatically when I double click on a zip file. I think PowerArchiver is available free. Chances are that you already have this program or something that works like that installed on your Windows machine. Once extraction is done, you will see a folder named emacs-21.3 under C:\emacs. Under emacs-21.3, you will see other folders including bin, etc, info, etc. At this point, you have downloaded and placed the files in the right place.
 
5.Next, you will download a file that will customize your emacs a little so that it makes your editor screen easier to read with colors recognizing some standard file types that you will be editing, e.g., a Java program file. Download _emacs.txt to C:\emacs\_emacs.txt by right-clicking on the link. Yes, the underscore character is part of the name. Use Save Link Target As... or Save Target As... Now, rename it to _emacs with Windows Explorer so that there is no .txt extension (or any other extension) as part of the file name.

6.Depending on the operating system that you use, choose one of the following paths: 95 or 98: edit your autoexec.bat file and add this line: set HOME=C:\emacs\ You will probably find autoexec.bat on your C: drive. Edit it with Notepad. You can't edit it by double clicking on it. Start Notepad and then open it with the File menu. 2K, ME, or XP: add HOME as an environment variable. Follow Start > Settings > Control Panel > System. Then select Advanced followd by Environment Variables. Then, add HOME as a user variable with the value C:\emacs\. NT: It works like 98 with the autoexec.bat file. I suspect it would work like 2K as well, but I have not tried it that way myself.

7. Restart your machine.

8. At this point, you might want to create an icon on your desktop for the Emacs that you just installed. Go to the C:\emacs\emacs-21.3\bin folder using Windows Explorer. There you will find a file named runemacs.exe. Create a shortcut to the desktop so that you can use it to run Emacs from the desktop. Now, you should be in business! If it doesn't work, you made a mistake in one of the steps above. Double and triple check.

9.After you create the shortcut, you might want to change the default 'Start in' folder. Change it to whatever you like through the Properties menu of the icon.

10.If you want to clean up a little, you may delete emacs-21.3-bin-i386.tar.gz at this point. You still need _emacs and emacs-21.3 in the C:\emacs folder though.

11.To learn how to use Emacs, try Emacs Tutorial that you can find under the Help menu in the Emacs window.

posted on 2006-03-23 17:20  host of nature  阅读(528)  评论(0编辑  收藏  举报

导航